Documentation
¶
Index ¶
- func CompareAsSet(expecteds, gots interface{}) (bool, string)
- func CompareAsStringSet(expecteds, gots []string) (bool, string)
- func IndexOfSlice(a interface{}, list interface{}) int
- func IndexOfStringSlice(a string, list []string) int
- func RandInt(min int, max int) int
- func RemoveElementFromStringSlice(list []string, elem string) []string
- func RemoveFromStringSlice(list []string, i int) []string
- func SliceContains(a interface{}, list interface{}) bool
- func StringSliceContains(a string, list []string) bool
- func TypeIsBool(typ reflect.Type) bool
- func TypeIsNumeric(typ reflect.Type) bool
- func TypeIsPointerToStruct(typ reflect.Type) bool
- func TypeIsSliceOrArray(typ reflect.Type) bool
- func TypeIsString(typ reflect.Type) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAsSet ¶
func CompareAsStringSet ¶
func IndexOfSlice ¶
func IndexOfSlice(a interface{}, list interface{}) int
func IndexOfStringSlice ¶
func RandInt ¶
generate a random int from min to max (inclusively). I.e. to get either 1 or 0, use randInt(0,1)
func RemoveFromStringSlice ¶
func SliceContains ¶
func SliceContains(a interface{}, list interface{}) bool
func StringSliceContains ¶
func TypeIsBool ¶
func TypeIsNumeric ¶
func TypeIsPointerToStruct ¶
func TypeIsSliceOrArray ¶
func TypeIsString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.