dotenv

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	Lines []*Line `@@*`
}

func Parse

func Parse(doc string) (*Doc, error)

func (*Doc) Get

func (d *Doc) Get(key string) string

type Line

type Line struct {
	Key   string `(("export" @Ident) | @Ident) "="`
	Value string `@(Ident | String)`
}

Jump to

Keyboard shortcuts

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