Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v0.4.86 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Env      = &EnvFile{}
	HomeDirs = map[string]string{}
)
View Source
var EnvFolder embed.FS

Functions

func GetEnvFilePath added in v0.3.167

func GetEnvFilePath(dir string) string

func GetHomeDirConnsMap added in v0.3.215

func GetHomeDirConnsMap() (connsMap map[string]map[string]any, err error)

func SetHomeDir added in v0.3.167

func SetHomeDir(name string) string

func Vars

func Vars() (vars map[string]string)

Vars are the variables we are using

Types

type EnvFile added in v0.3.167

type EnvFile struct {
	Connections map[string]map[string]interface{} `json:"connections,omitempty" yaml:"connections,omitempty"`
	Variables   map[string]interface{}            `json:"variables,omitempty" yaml:"variables,omitempty"`

	Path       string `json:"-" yaml:"-"`
	TopComment string `json:"-" yaml:"-"`
}

func LoadEnvFile added in v0.3.167

func LoadEnvFile(path string) (ef EnvFile)

func (*EnvFile) WriteEnvFile added in v0.3.177

func (ef *EnvFile) WriteEnvFile() (err error)

Jump to

Keyboard shortcuts

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