tool

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 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 Day deprecated added in v0.2.6

func Day() string

Deprecated: 已废弃

func GetEnv

func GetEnv() string

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 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 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 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 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