Versions in this module Expand all Collapse all v2 v2.7.2 Aug 2, 2024 Changes in this version + func Cfg(name ...string) *gcfg.Config + func Client() *gclient.Client + func Config(name ...string) *gcfg.Config + func DB(name ...string) gdb.DB + func Dump(values ...interface{}) + func DumpJson(value any) + func DumpTo(writer io.Writer, value interface{}, option gutil.DumpOption) + func DumpWithOption(value interface{}, option gutil.DumpOption) + func DumpWithType(values ...interface{}) + func Go(ctx context.Context, goroutineFunc func(ctx context.Context), ...) + func I18n(name ...string) *gi18n.Manager + func IsEmpty(value interface{}, traceSource ...bool) bool + func IsNil(value interface{}, traceSource ...bool) bool + func Listen() + func Log(name ...string) *glog.Logger + func Model(tableNameOrStruct ...interface{}) *gdb.Model + func ModelRaw(rawSql string, args ...interface{}) *gdb.Model + func Redis(name ...string) *gredis.Redis + func RequestFromCtx(ctx context.Context) *ghttp.Request + func Res(name ...string) *gres.Resource + func Resource(name ...string) *gres.Resource + func Server(name ...interface{}) *ghttp.Server + func SetDebug(enabled bool) + func TCPServer(name ...interface{}) *gtcp.Server + func Throw(exception interface{}) + func Try(ctx context.Context, try func(ctx context.Context)) (err error) + func TryCatch(ctx context.Context, try func(ctx context.Context), ...) + func UDPServer(name ...interface{}) *gudp.Server + func Validator() *gvalid.Validator + func View(name ...string) *gview.View + func Wait() + type Array = []interface + type ArrayAny = []interface + type ArrayInt = []int + type ArrayStr = []string + type Ctx = context.Context + type List = []Map + type ListAnyAny = []MapAnyAny + type ListAnyBool = []MapAnyBool + type ListAnyInt = []MapAnyInt + type ListAnyStr = []MapAnyStr + type ListIntAny = []MapIntAny + type ListIntBool = []MapIntBool + type ListIntInt = []MapIntInt + type ListIntStr = []MapIntStr + type ListStrAny = []MapStrAny + type ListStrBool = []MapStrBool + type ListStrInt = []MapStrInt + type ListStrStr = []MapStrStr + type Map = map[string]interface + type MapAnyAny = map[interface{}]interface + type MapAnyBool = map[interface{}]bool + type MapAnyInt = map[interface{}]int + type MapAnyStr = map[interface{}]string + type MapIntAny = map[int]interface + type MapIntBool = map[int]bool + type MapIntInt = map[int]int + type MapIntStr = map[int]string + type MapStrAny = map[string]interface + type MapStrBool = map[string]bool + type MapStrInt = map[string]int + type MapStrStr = map[string]string + type Meta = gmeta.Meta + type Slice = []interface + type SliceAny = []interface + type SliceInt = []int + type SliceStr = []string + type Var = gvar.Var + func NewVar(i interface{}, safe ...bool) *Var