utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString added in v0.1.5

func ContainsString(array []string, val string) (index int)

determine whether to include

func CreatNestedFile

func CreatNestedFile(path string) (*os.File, error)

嵌套创建文件

func Exists

func Exists(name string) bool

determine whether the file exists

func Get16MD5Encode added in v1.0.1

func Get16MD5Encode(data string) string

返回一个16位md5加密后的字符串

func GetCode

func GetCode(rawUrl string) string

get code from url

func GetDriveByName added in v1.0.1

func GetDriveByName(name string) *conf.Drive

func GetMD5Encode added in v1.0.1

func GetMD5Encode(data string) string

返回一个32位md5加密后的字符串

func GetNames added in v1.0.1

func GetNames() []string

func HasSuffixes added in v1.0.6

func HasSuffixes(str string, suffixes []string) bool

HasSuffixes check string has suffixes in string array.

func SimpleCopyProperties added in v1.0.0

func SimpleCopyProperties(dst, src interface{}) (err error)

copy interface val

func VersionCompare added in v0.1.5

func VersionCompare(version1, version2 string) int

compare version

func WriteToYml

func WriteToYml(src string, conf interface{})

write struct to yaml file

Types

This section is empty.

Jump to

Keyboard shortcuts

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