Documentation ¶
Index ¶
- func CUID() string
- func Get(requestURL string, params url.Values, body interface{}) error
- func ParseConfig(cfg string, config interface{}) error
- func Post(requestURL string, params string, body interface{}) error
- func RecoveredFn(cbs ...func())
- func TimeMillisecondToHumanString(t time.Time) string
- func ToTrimString(filePath string) (content string, err error)
- func UUID() string
- func ValidateStruct(obj interface{}) error
- func ValidateVar(field string, tag string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
ParseConfig 解析json文件到config结构体
func ToTrimString ¶
ToTrimString read file content from filepath and replace space
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.