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.2
Published
Apr 26, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
2 minutes ago

Tools for package owners.