Documentation
¶
Index ¶
- func Base64Decode(str string) (string, bool)
- func Find[T comparable](items []T, key string, v string) (bool, T)
- func If[T any](cond bool, vtrue, vfalse T) T
- func IfNull[T comparable](defValue T, value T) T
- func JsonQuery[T any](input map[string]interface{}, query string) (T, error)
- func Map[T any](src []T, key func(T) string) map[string]T
- func MapByteToStruct[T comparable](_map map[string][]byte) T
- func ParseJsonFile[T any](path string) T
- func ParseK8sResource[T any](path string) T
- func ParseYamlFile[T any](path string) T
- func RandomString(n int, r ...string) string
- func ReadFile(path string) []byte
- func Slice[T any](_map map[string]T) []T
- func ToString(v any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func IfNull ¶
func IfNull[T comparable](defValue T, value T) T
func MapByteToStruct ¶
func MapByteToStruct[T comparable](_map map[string][]byte) T
func ParseJsonFile ¶
func ParseK8sResource ¶
func ParseYamlFile ¶
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.