gocuelang.org/go/internal/envflag Index | Files

package envflag

import "cuelang.org/go/internal/envflag"

Index

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.

Source Files

flag.go

Version
v0.8.0
Published
Mar 15, 2024
Platform
js/wasm
Imports
4 packages
Last checked
8 minutes ago

Tools for package owners.