Documentation
¶
Index ¶
- Constants
- func AddBar(p *mpb.Progress, total int64, name string) *mpb.Bar
- func BufferedFromJson[T any](path string, buffer []byte, out *T) error
- func CreateGroupId(parentUid string, groupName string) string
- func FilterSlice[T any](input []T, filterFunc func(T) bool) (output []T)
- func FirstInt64NonZero(ints ...int64) int64
- func FirstNonEmpty(strings ...string) string
- func FirstNonZero(ints ...int) int
- func FromJson[T any](path string, out *T) error
- func GetRandomUid() string
- func Hash(value string) uint64
- func LastIndexFunc[T any](input []T, filterFunc func(T) bool) int
- func MapSlice[T, U any](input []T, mapper func(T) U) (output []U)
- func MapSliceWithPointer[T, U any](input []T, mapper func(*T, ...any) U, args ...any) (output []U)
- func ReadFile[T any](path string, out *T) error
- func WriteCsv(path string, values [][]string) error
- func WriteJson[T any](path string, value T) error
- type ReadFileType
- type Shared
- type WriteFileType
Constants ¶
View Source
const ( UidRandomBytesCount = 8 RADIX = 16 )
View Source
const (
MaxSize = 1 << 19
)
Variables ¶
This section is empty.
Functions ¶
func CreateGroupId ¶
func FilterSlice ¶
func FirstInt64NonZero ¶
func FirstNonEmpty ¶
func FirstNonZero ¶
func GetRandomUid ¶
func GetRandomUid() string
func LastIndexFunc ¶
func MapSliceWithPointer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.