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-rc.1
Published
Mar 13, 2024
Platform
darwin/amd64
Imports
4 packages
Last checked
48 minutes ago

Tools for package owners.