userenv

package
v0.0.0-...-f6cbe64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFile

func DefaultFile() string

func Delete

func Delete(key string) error

func DeleteFromFile

func DeleteFromFile(filename, key string) error

func Get

func Get(key string) (string, error)

func GetFromFile

func GetFromFile(filename, key string) (string, error)

func Load

func Load() (map[string]string, error)

func LoadFromFile

func LoadFromFile(filename string) (map[string]string, error)

func Modify

func Modify(fn func(map[string]string)) error

func ModifyAndSaveToFile

func ModifyAndSaveToFile(filename string, fn func(map[string]string)) error

func Save

func Save(m map[string]string) error

func SaveToFile

func SaveToFile(filename string, m map[string]string) error

func Set

func Set(key, value string) error

func SetAndSaveToFile

func SetAndSaveToFile(filename, key, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL