Documentation
¶
Index ¶
- func ConvertModel(src, dst any)
- func CreateLink(src, dst string) error
- func CreateMutiDir(filePath string) error
- func Filename(filename string) string
- func Format(format string, p FormatMap) string
- func IsDir(path string) bool
- func IsExist(path string) bool
- func Md5Str(str string) string
- func Rename(src, dst string) error
- func Sha256(src string) string
- func Sleep(second int, ctx context.Context) bool
- func UTCToTimeStr(t1 string) string
- type FormatMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertModel ¶
func ConvertModel(src, dst any)
func CreateLink ¶ added in v0.5.0
func Sleep ¶
Sleep
@Description: 信号计时器,每秒检测一次信号,避免长时间等待无法接收信号 @Description: 收到exit信号后,会返回true;倒计时结束,会返回false @param second int @param exit chan bool @return bool
func UTCToTimeStr ¶ added in v0.4.3
Types ¶
Click to show internal directories.
Click to hide internal directories.