Documentation ¶ Index ¶ func Init[T any](flags *T, envVar string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init[T any](flags *T, envVar string) error Init initializes the fields in flags from the contents of the given environment variable, which contains a comma-separated list of names representing the boolean fields in the struct type T. Names are treated case insensitively. Types ¶ This section is empty. Source Files ¶ View all Source files flag.go Click to show internal directories. Click to hide internal directories.