Documentation
¶
Index ¶
- func AnyEquals[T comparable](list []T, value T) bool
- func BeginsWith(subject, find string) bool
- func GetKeys[T_Key comparable, T_Value interface{}](subject map[T_Key]T_Value) []T_Key
- func GetSortedKeys[T interface{}](subject map[string]T) []string
- func HasHeaderWithValue(headers *http.Header, headerKeyToSearch, headerValueToSearch string) bool
- func IndexOf[T comparable](list []T, value T) int
- func JoinMap[K comparable, V comparable](mapDst map[K]V, mapSrc map[K]V)
- func ListsEqual[T comparable](listA []T, listB []T) bool
- func ListsEqualUnsorted[T comparable](listA, listB []T) bool
- func MapContains[K comparable, V comparable](m map[K]V, key K, value V) bool
- func MapMapValueOnly[T_Key comparable, T_Value comparable, T_ValueB interface{}](subject map[T_Key]T_Value, transform func(value T_Value) T_ValueB) map[T_Key]T_ValueB
- func MarshalJsonHelper[T comparable](mapValues map[T]string, errorMessage string, value *T) ([]byte, error)
- func MktempDir() (string, error)
- func ReplaceRegex(subject string, find []string, replaceWith string) string
- func UnmarshalJsonHelper[T comparable](value *T, mapValues map[T]string, data []byte, errorMessage string) error
- func Unquote(subject string) string
- func WrapIn(wrapper string) func(subject string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyEquals ¶
func AnyEquals[T comparable](list []T, value T) bool
func BeginsWith ¶
func GetKeys ¶ added in v0.0.2
func GetKeys[T_Key comparable, T_Value interface{}](subject map[T_Key]T_Value) []T_Key
func GetSortedKeys ¶ added in v0.1.1
func HasHeaderWithValue ¶
func IndexOf ¶ added in v0.0.2
func IndexOf[T comparable](list []T, value T) int
func JoinMap ¶
func JoinMap[K comparable, V comparable](mapDst map[K]V, mapSrc map[K]V)
func ListsEqual ¶
func ListsEqual[T comparable](listA []T, listB []T) bool
func ListsEqualUnsorted ¶ added in v0.0.2
func ListsEqualUnsorted[T comparable](listA, listB []T) bool
func MapContains ¶
func MapContains[K comparable, V comparable](m map[K]V, key K, value V) bool
func MapMapValueOnly ¶ added in v0.0.2
func MapMapValueOnly[T_Key comparable, T_Value comparable, T_ValueB interface{}]( subject map[T_Key]T_Value, transform func(value T_Value) T_ValueB, ) map[T_Key]T_ValueB
func MarshalJsonHelper ¶ added in v0.0.2
func MarshalJsonHelper[T comparable]( mapValues map[T]string, errorMessage string, value *T, ) ([]byte, error)
func UnmarshalJsonHelper ¶ added in v0.0.2
func UnmarshalJsonHelper[T comparable]( value *T, mapValues map[T]string, data []byte, errorMessage string, ) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.