Documentation ¶
Index ¶
- func ArrayToMap(arr []string, sep string) map[string][]string
- func Combinations2(arr []int, callback func(tuple *tuple.Tuple))
- func Combinations3(arr []int, callback func(triple *triple.Triple))
- func Copy(dst, src interface{}) (err error)
- func EnsureDirExists(dirname string, mode os.FileMode) (err error)
- func Hash(hash crypto.Hash, in []byte) (out []byte)
- func MD5(in []byte) (out []byte)
- func MD5String(in []byte) (out string)
- func MyIPAddresses() (ips []string)
- func MyMACs() (macs []string)
- func PanicOnError(err error)
- func ReaderHash(hash crypto.Hash, reader io.Reader) (out []byte, err error)
- func ReaderMD5(reader io.Reader) (out []byte, err error)
- func ReaderSHA256(reader io.Reader) (out []byte, err error)
- func SHA256(in []byte) (out []byte)
- func Struct2Map(st interface{}, tagStr string) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Combinations2 ¶
Combinations2 组合
func Combinations3 ¶
Combinations3 组合
func EnsureDirExists ¶
EnsureDirExists 确保目录存在
func ReaderHash ¶
ReaderHash
func Struct2Map ¶
Struct2Map 结构体转换为Map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.