Documentation ¶
Index ¶
- func CamelCase(fieldName string, initCase bool) string
- func DashCase(fieldName string) string
- func GetObjByField(l []interface{}, identifier string, value string) interface{}
- func IsZeroValue(v reflect.Value) bool
- func ObjInArray(value string, y []interface{}, identifier string) bool
- func ParseSize(size string) *int64
- func ParseTimeout(tOut string) *int64
- func SnakeCase(fieldName string) string
- func StringInSlice(a string, list []string) bool
- func StringP(s string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObjByField ¶
GetObjByField returns struct from list l if it has field named identifier with value value
func IsZeroValue ¶
IsZeroValue is a helper method for reflect, checks if reflect.Value has zero value
func ObjInArray ¶
ObjInArray returns true if struct in list y has field named identifier with value value
func ParseTimeout ¶
func StringInSlice ¶
StringInSlice checks if a string is in a list of strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.