tool

package
v1.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConStringToInt64

func ConStringToInt64(s string) (int64, error)

func GetEnv

func GetEnv() string

func IsProEnv

func IsProEnv() bool

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 MergeConfig

func MergeConfig(config1 *viper.Viper, config2 *viper.Viper) *viper.Viper

func Milliseconds

func Milliseconds() int64

func OpId

func OpId(ctx context.Context) string

func OpIdWithoutDefault

func OpIdWithoutDefault(ctx context.Context) string

func SecondsUntilMidnight

func SecondsUntilMidnight() int64

func UUIDWithoutHyphen

func UUIDWithoutHyphen() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL