Documentation
¶
Index ¶
- func Chtimes(name string, mtime time.Time) error
- func CopyDir(source, dest string) error
- func CreateDirIfNotExist(dir string) error
- func ExpFloat64() float64
- func FileMD5(filename string) (string, error)
- func FileSha256(filename string) (string, error)
- func FillIncrNum(s []int, begin int, sep int) []int
- func FirstNonEmpty(values ...string) string
- func Float32() float32
- func Float64() float64
- func Hash(name string, src io.Reader) (string, error)
- func Int() int
- func Int31() int32
- func Int31n(n int32) int32
- func Int63() int64
- func Int63n(n int64) int64
- func Intn(n int) int
- func IsDirSame(d1 string, d2 string) error
- func IsFileSame(f1 string, f2 string) error
- func MD5(src io.Reader) (string, error)
- func Move(source, dest string) error
- func MustFileMD5(filename string) string
- func MustFileSha256(filename string) string
- func NormFloat64() float64
- func Perm(n int) []int
- func Read(p []byte) (n int, err error)
- func SafeSubStr(raw string, left int, right int) string
- func Seed(seed int64)
- func Sha256(src io.Reader) (string, error)
- func Shuffle(n int, swap func(i int, j int))
- func SplitStrRightBySize(raw string, size int) []string
- func ToMap(v any) (map[string]any, error)
- func Uint32() uint32
- func Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNotExist ¶
func ExpFloat64 ¶
func ExpFloat64() float64
func FileSha256 ¶ added in v0.0.47
func FirstNonEmpty ¶ added in v0.0.48
func IsFileSame ¶
func MustFileMD5 ¶
func MustFileSha256 ¶ added in v0.0.47
func NormFloat64 ¶
func NormFloat64() float64
func SplitStrRightBySize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.