Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IllegalChars specifies illegal characters that flag CLI / env flags may not contain. IllegalChars = "\x00" + "=" + "\t\n\v\f\r " + "\u0009" + "\u000A" + "\u000B" + "\u000C" + "\u000D" + "\u0020" + "\u0085" + "\u00a0" + "\u1680" + "\u2000" + "\u2001" + "\u2002" + "\u2003" + "\u2004" + "\u2005" + "\u2006" + "\u2007" + "\u2008" + "\u2009" + "\u200A" + "\u2028" + "\u2029" + "\u202F" + "\u205F" + "\u2300" // ideographic space )
Variables ¶
This section is empty.
Functions ¶
func IsValidTag ¶
IsValidTag returns whether tag is a valid struct tag (i.e. not empty or '-' null).
func StructFieldsForType ¶
func StructFieldsForType(t reflect.Type) []reflect.StructField
StructFieldsForType returns a slice of struct fields for given struct type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.