Documentation
¶
Overview ¶
Package envutil exposes the v1 envutil package-level function names on top of the v2 env package so existing callers can migrate by import path rename only. New code should call env.Revokable, env.Scoped, etc. directly with an env.Repository (or any value satisfying env.Getter / env.GetSetter), while these package-level wrappers touch the real process environment unconditionally.
Index ¶
- func GetenvWithDefault(envKey, defValue string) stringdeprecated
- func RequiredEnv(envKey string) (string, error)deprecated
- func RevokableSetenv(key, value string) (func() error, error)deprecated
- func RevokableSetenvs(envs map[string]string) (func() error, error)deprecated
- func SetenvForFunction(key, value string, fn func()) errordeprecated
- func SetenvsForFunction(envs map[string]string, fn func()) errordeprecated
- func StringFlagOrEnv(flagValue *string, envKey string) stringdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetenvWithDefault
deprecated
func RequiredEnv
deprecated
func RevokableSetenv
deprecated
func RevokableSetenvs
deprecated
func SetenvForFunction
deprecated
func SetenvsForFunction
deprecated
func StringFlagOrEnv
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.