utils

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMethodByName

func CallMethodByName(receiver any, methodName string, args ...any) ([]reflect.Value, error)

func FromCtx

func FromCtx(ctx context.Context, key string) string

func IsIPV4

func IsIPV4(ip string) bool

func SetJson

func SetJson(val string, dist reflect.Value) error

Types

type FuncCaller

type FuncCaller struct {
	// contains filtered or unexported fields
}

func NewFuncCaller

func NewFuncCaller(name string) *FuncCaller

func (*FuncCaller) Call

func (f *FuncCaller) Call(name string, args ...any) ([]reflect.Value, error)

func (*FuncCaller) Name

func (f *FuncCaller) Name() string

func (*FuncCaller) Register

func (f *FuncCaller) Register(name string, fn any)

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL