tool

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 15 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 ConStringToInt64WithoutErr added in v0.4.4

func ConStringToInt64WithoutErr(s string) int64

func Day deprecated added in v0.2.6

func Day() string

Deprecated: 已废弃

func GetEnv

func GetEnv() string

func GrpcCtx added in v0.5.4

func GrpcCtx(ctx context.Context) context.Context

func Hour deprecated added in v0.2.6

func Hour() string

Deprecated: 已废弃

func IsLetter added in v0.0.2

func IsLetter(s string) bool

func IsProEnv

func IsProEnv() bool

func LastMonth deprecated added in v0.3.2

func LastMonth() string

Deprecated: 已废弃

func LastWeek deprecated added in v0.3.1

func LastWeek() string

Deprecated: 已废弃,请使用 timeTool.LastWeek()

func Marshal added in v0.4.0

func Marshal(v interface{}) (string, error)

func MarshalWithoutErr

func MarshalWithoutErr(v interface{}) string

func MergeByJson

func MergeByJson(from interface{}, to interface{})

func MergeByReflection deprecated

func MergeByReflection(from interface{}, to interface{}) error

Deprecated: 已废弃

func MergeConfig

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

func MidnightTody deprecated added in v0.2.9

func MidnightTody() time.Time

Deprecated: 已废弃

func Milliseconds

func Milliseconds() int64

func Minute deprecated added in v0.2.6

func Minute() string

Deprecated: 已废弃

func Month deprecated added in v0.2.6

func Month() string

Deprecated: 已废弃

func OpId

func OpId(ctx context.Context) string

func OpIdWithoutDefault

func OpIdWithoutDefault(ctx context.Context) string

func RandInt64InRange added in v0.4.3

func RandInt64InRange(min, max int64) int64

RandInt64InRange 生成 [min, max) 的 int64 随机数

func Second deprecated added in v0.2.6

func Second() string

Deprecated: 已废弃

func UUIDWithoutHyphen

func UUIDWithoutHyphen() string

func Uid added in v0.2.1

func Uid(ctx context.Context) string

func Unmarshal added in v0.4.0

func Unmarshal(data string, v interface{}) error

func Week deprecated added in v0.2.2

func Week() string

Deprecated: 已废弃

func WeekDay deprecated added in v0.2.2

func WeekDay() time.Weekday

Deprecated: 已废弃

func Year deprecated added in v0.2.6

func Year() string

Deprecated: 已废弃

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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