internal

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 1 Imported by: 0

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

func IsValidTag(tag string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL