Documentation ¶
Index ¶
- func DigInvoke(function interface{}, opts ...dig.InvokeOption) error
- func DigProvide(constructor interface{}, opts ...dig.ProvideOption) error
- func FormatStr(s string) string
- func FormatStrs(ss []string) []string
- func FormatUID(uid string) string
- func FormatUIDs(uids []string) []string
- func HashBase64(prefix string, ss ...string) string
- func ReadConfig(v interface{}, path ...string)
- func StringsFilter(ss []string, filter func(s string) bool) []string
- func StringsHas(ss []string, filter func(s string) bool) bool
- func UnixMS(ts ...time.Time) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigProvide ¶
func DigProvide(constructor interface{}, opts ...dig.ProvideOption) error
DigProvide ...
func HashBase64 ¶
HashBase64 generate a composite unique index value.
func ReadConfig ¶
func ReadConfig(v interface{}, path ...string)
ReadConfig 指定配置文件并解析; 未指定配置文件则通过环境变量获取
func StringsFilter ¶
StringsFilter ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.