Documentation
¶
Index ¶
- func Format(values map[string]string) []string
- func Marshal(values map[string]string) []byte
- func Merge(base map[string]string, overlays ...map[string]string) map[string]string
- func MinimalSystemEnv() map[string]string
- func ParseFile(path string) (map[string]string, error)
- func ValidateKey(key string) error
- type Entry
- type Scope
- type ScopeKind
- type Store
- func (s *Store) List(scope Scope) ([]Entry, error)
- func (s *Store) Load(scope Scope) (map[string]string, error)
- func (s *Store) Path(scope Scope) (string, error)
- func (s *Store) Root() string
- func (s *Store) Set(scope Scope, key, value string) error
- func (s *Store) Unset(scope Scope, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinimalSystemEnv ¶
func ParseFile ¶ added in v0.7.0
ParseFile 读取受控的 shell 风格环境变量文件。 桌面服务只接受赋值、引号和注释,不执行命令替换或其他 shell 语法。
func ValidateKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.