dotenv

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILENAME = ".env.local"
)

Variables

Functions

func Delete

func Delete() error

func Exists

func Exists() bool

Validate whether account config exists in file system or not

func Load

func Load() (*dto.KPMap, error)

Load, parse and return the available account config.

func LoadOrNew

func LoadOrNew() (*dto.KPMap, error)

Calls the Load() function. But if that function call fails, it creates a new file and returns an empty config.

func Save

func Save(config *dto.KPMap) error

Save the provided config in its default location in the root.

func Write

func Write(config *dto.KPMap) error

Writes the provided config in its default location in the root.

Types

type File

type File struct {
	dto.KPMap
}

Jump to

Keyboard shortcuts

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