Documentation ¶
Index ¶
- func Contains(names []string, name string) bool
- func ContainsPartialsOnly(partialNames []string, testedString string) (contains bool)
- func EqualClassical(lhs, rhs reflect.Value) bool
- func FindInSlice(ns reflect.Value, elv typ.Any, i int) (found bool)
- func InspectStruct(v typ.Any)
- func MinInt(a, b int) int
- func PartialContains(names []string, partialNeedle string) (index int, matched string, contains bool)
- func PartialContainsShort(names []string, partialNeedle string) (contains bool)
- func PointerTo(t reflect.Type) reflect.Type
- func PtrOf(tgt reflect.Value) reflect.Value
- func ReverseAnySlice(s typ.Any)
- func ReverseSlice(s interface{})
- func ReverseStringSlice(s []string) []string
- func StripQuotes(s string) string
- func TrimQuotes(s string) string
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsPartialsOnly ¶
ContainsPartialsOnly checks if testedString has a part of in partialNames list.
func EqualClassical ¶
EqualClassical tests lhs and rhs is equal.
func FindInSlice ¶
FindInSlice finds a value elv is in array ns.
func InspectStruct ¶
InspectStruct dumps wach field in a struct with its reflect information.
func PartialContains ¶
func PartialContains(names []string, partialNeedle string) (index int, matched string, contains bool)
PartialContains checks if one of names has partialNeedle as a part.
func PartialContainsShort ¶
PartialContainsShort checks if one of names has partialNeedle as a part.
func PointerTo ¶ added in v0.2.51
PointerTo returns the pointer type of element t. For example, if t represents type Foo, PointerTo(t) represents *Foo.
func ReverseStringSlice ¶
ReverseStringSlice reverse a string slice.
func StripQuotes ¶ added in v1.0.2
StripQuotes strips first and last quote char (double quote or single quote).
func TrimQuotes ¶ added in v1.0.2
TrimQuotes strips first and last quote char (double quote or single quote).