package
0.1.5
Repository: https://github.com/kotlin2018/pkg.git
Documentation: pkg.go.dev

# Functions

Config returns an instance of View with default settings.
Database returns an instance of database ORM object with specified configuration group name.
Get returns the instance by given name.
GetOrSet returns the instance by name, or set instance to the instance manager if it does not exist and returns this instance.
GetOrSetFunc returns the instance by name, or sets instance with returned value of callback function <f> if it does not exist and then returns this instance.
GetOrSetFuncLock returns the instance by name, or sets instance with returned value of callback function <f> if it does not exist and then returns this instance.
I18n returns an instance of gi18n.Manager.
Log returns an instance of glog.Logger.
Redis returns an instance of redis client with specified configuration group name.
Resource returns an instance of Resource.
Server returns an instance of http server with specified name.
Set sets a instance object to the instance manager with given name.
SetIfNotExist sets <instance> to the map if the <name> does not exist, then returns true.
View returns an instance of View with default settings.