Documentation
¶
Index ¶
- func CheckFieldsZeroValue(s interface{}, fields []string) (map[string]bool, error)
- func ConStringToInt64(s string) (int64, error)
- func GetEnv() string
- func HasZeroValue(s interface{}, fields []string) bool
- func IsLetter(s string) bool
- func IsProEnv() bool
- func MarshalWithoutErr(v interface{}) string
- func MergeByJson(from interface{}, to interface{})
- func MergeByReflection(from interface{}, to interface{}) error
- func MergeConfig(config1 *viper.Viper, config2 *viper.Viper) *viper.Viper
- func Milliseconds() int64
- func OpId(ctx context.Context) string
- func OpIdWithoutDefault(ctx context.Context) string
- func SecondsUntilMidnight() int64
- func UUIDWithoutHyphen() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFieldsZeroValue ¶ added in v0.0.3
CheckFieldsZeroValue 检查结构体中指定字段是否为零值
func ConStringToInt64 ¶
func HasZeroValue ¶ added in v0.0.3
func MarshalWithoutErr ¶
func MarshalWithoutErr(v interface{}) string
func MergeByJson ¶
func MergeByJson(from interface{}, to interface{})
func MergeByReflection ¶
func MergeByReflection(from interface{}, to interface{}) error
func Milliseconds ¶
func Milliseconds() int64
func OpIdWithoutDefault ¶
func SecondsUntilMidnight ¶
func SecondsUntilMidnight() int64
func UUIDWithoutHyphen ¶
func UUIDWithoutHyphen() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.