Documentation
¶
Index ¶
- func AppVersion() string
- func Append(res []string, values ...string) []string
- func AppendMap[K comparable, V any](values map[K]V, to *map[K]V)
- func AppendMapWithResolving[K comparable, V any](values map[K]V, to *map[K]V, resolver func(key K, value1, value2 V) V)
- func CNameToCamelName(s string) string
- func CopyMap[K comparable, V any](m map[K]V) map[K]V
- func DoLint(commentRight string) bool
- func ExtractTLGenTag(comment string, tag string) (found bool, value string)
- func FilterSlice[A any](in []A, f func(A) bool) (out []A)
- func IsFirstBasicLatin(str string) bool
- func JsonPrettyPrint(in []byte) []byte
- func Keys[K comparable, V any](m map[K]V) (res []K)
- func MapSlice[A, B any](in []A, f func(A) B) (out []B)
- func ParseHexToBytes(data string) []byte
- func ParseHexToBytesTL2(data string) []byte
- func PutPairToSetOfPairs[K, V comparable](in *map[K]map[V]bool, k K, v V)
- func ReverseSetOfPairs[K, V comparable](in map[K]map[V]bool) map[V]map[K]bool
- func SetIntersection[K comparable](s1, s2 map[K]bool) map[K]bool
- func SetSubSets[T comparable](s map[T]bool) (values []map[T]bool)
- func SetToSlice[T comparable](s map[T]bool) []T
- func SetUnion[K comparable](s1, s2 map[K]bool) map[K]bool
- func ShiftAll(s []string, shift string) []string
- func SliceToMap[K comparable, T, V any](s []T, key func(T) K, value func(T) V) map[K]V
- func SliceToSet[T comparable](s []T) map[T]bool
- func SprintHexDump(data []byte) string
- func SprintHexDumpTL2(data []byte) string
- func ToLowerFirst(str string) string
- func ToUpperFirst(str string) string
- func Values[K comparable, V any](m map[K]V) (res []V)
- func WalkDeterministic(fileExt string, root ...string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppVersion ¶
func AppVersion() string
func AppendMap ¶
func AppendMap[K comparable, V any](values map[K]V, to *map[K]V)
func AppendMapWithResolving ¶
func AppendMapWithResolving[K comparable, V any](values map[K]V, to *map[K]V, resolver func(key K, value1, value2 V) V)
func CNameToCamelName ¶
TODO - investigate if this function is good
func CopyMap ¶
func CopyMap[K comparable, V any](m map[K]V) map[K]V
func ExtractTLGenTag ¶
finds value for tags in comment with template {tag}:"{value}"
func FilterSlice ¶
func IsFirstBasicLatin ¶
func JsonPrettyPrint ¶
func ParseHexToBytes ¶
func ParseHexToBytesTL2 ¶
func PutPairToSetOfPairs ¶
func PutPairToSetOfPairs[K, V comparable](in *map[K]map[V]bool, k K, v V)
func ReverseSetOfPairs ¶
func ReverseSetOfPairs[K, V comparable](in map[K]map[V]bool) map[V]map[K]bool
func SetIntersection ¶
func SetIntersection[K comparable](s1, s2 map[K]bool) map[K]bool
func SetSubSets ¶
func SetSubSets[T comparable](s map[T]bool) (values []map[T]bool)
WARINING: USE IF S IS SMALL AND IF YOU NOT FACE ALLOCATION PROBLEM
func SetUnion ¶
func SetUnion[K comparable](s1, s2 map[K]bool) map[K]bool
func SliceToMap ¶
func SliceToMap[K comparable, T, V any](s []T, key func(T) K, value func(T) V) map[K]V
func SliceToSet ¶
func SliceToSet[T comparable](s []T) map[T]bool
func SprintHexDump ¶
func SprintHexDumpTL2 ¶
func ToLowerFirst ¶
func ToUpperFirst ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.