Documentation
¶
Index ¶
- func CopyFile(src, dst string) (int64, error)
- func FindIndex[T comparable](array []T, v T) int
- func Map[T any, M any](s []T, f func(T) M) []M
- func RandomString(n int) string
- func TopoSort(size int, dependon func(i, j int) bool) (res []int, err error)
- type ByteValue
- type Checksum
- type CtntType
- type HashValue
- type LangTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindIndex ¶ added in v0.0.31
func FindIndex[T comparable](array []T, v T) int
index of the first element equaling to v, otherwise return -1
func RandomString ¶
Types ¶
type Checksum ¶
comparable
func FileChecksum ¶
SHA256 hash for file content. for any error, return empty hash
func ReaderChecksum ¶
Click to show internal directories.
Click to hide internal directories.