environment

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table interface {
	Mode() safe.Mode

	Names() []string

	SetEnv(name, value string)

	GetEnv(name string) string
	GetEnvOptional(name, defaultValue string) string
	GetEnvRequired(name string) (string, error)

	Export(dst map[string]string) map[string]string
	Import(src map[string]string)
}

Table 表示环境变量表

func NewTable

func NewTable(mode safe.Mode) Table

NewTable 新建属性表

Jump to

Keyboard shortcuts

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