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 ¶ added in v1.2.34
func AppVersion() string
func AppendMap ¶ added in v1.1.6
func AppendMap[K comparable, V any](values map[K]V, to *map[K]V)
func AppendMapWithResolving ¶ added in v1.1.6
func AppendMapWithResolving[K comparable, V any](values map[K]V, to *map[K]V, resolver func(key K, value1, value2 V) V)
func CNameToCamelName ¶ added in v1.2.34
TODO - investigate if this function is good
func CopyMap ¶ added in v1.1.6
func CopyMap[K comparable, V any](m map[K]V) map[K]V
func ExtractTLGenTag ¶ added in v1.2.35
finds value for tags in comment with template {tag}:"{value}"
func FilterSlice ¶ added in v1.1.6
func IsFirstBasicLatin ¶ added in v1.2.35
func JsonPrettyPrint ¶
func ParseHexToBytes ¶ added in v1.1.8
func ParseHexToBytesTL2 ¶ added in v1.1.25
func PutPairToSetOfPairs ¶ added in v1.1.6
func PutPairToSetOfPairs[K, V comparable](in *map[K]map[V]bool, k K, v V)
func ReverseSetOfPairs ¶ added in v1.1.6
func ReverseSetOfPairs[K, V comparable](in map[K]map[V]bool) map[V]map[K]bool
func SetIntersection ¶ added in v1.2.17
func SetIntersection[K comparable](s1, s2 map[K]bool) map[K]bool
func SetSubSets ¶ added in v1.2.10
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 ¶ added in v1.2.17
func SetUnion[K comparable](s1, s2 map[K]bool) map[K]bool
func SliceToMap ¶ added in v1.2.17
func SliceToMap[K comparable, T, V any](s []T, key func(T) K, value func(T) V) map[K]V
func SliceToSet ¶ added in v1.1.6
func SliceToSet[T comparable](s []T) map[T]bool
func SprintHexDump ¶ added in v1.1.8
func SprintHexDumpTL2 ¶ added in v1.1.25
func ToLowerFirst ¶ added in v1.2.34
func ToUpperFirst ¶ added in v1.2.34
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.