Documentation
¶
Index ¶
- func ConcatSlice[T any](first []T, second []T) []T
- func Contains[T string | int](s []T, e T) bool
- func GetFieldMapping(field string) (string, string)
- func GetFieldsMapping(fields []string) map[string]string
- func GetRelativeURL(absURL string) string
- func GetRespValByProp(val map[string]any, propPath string) any
- func IsNotFound(err error) bool
- func NormalizeEntityName(name string) string
- func NormalizeEntityNameSnake(name string) string
- func RemoveRelativeURLPrefix(relURL, prefix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldMapping ¶ added in v1.5.0
func GetFieldsMapping ¶ added in v1.5.0
func GetRelativeURL ¶
Retrives relative URL out of an absolute one
func GetRespValByProp ¶
Extracts value from map by property path
func IsNotFound ¶
IsNotFound unwraps API response errors checking for 404 Not Found
func NormalizeEntityName ¶
func RemoveRelativeURLPrefix ¶
Removes relative URL prefix from relative URL case insensitive
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.