dotenv

package
v0.0.0-...-7743022 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dotenv implements the parsing of the .env format.

There is no formal definition of the format but it has been introduced by https://github.com/bkeepers/dotenv which is thus canonical.

Index

Constants

View Source
const LINE = `` /* 419-byte string literal not displayed */

LINE is the regexp matching a single line

Variables

This section is empty.

Functions

func MustParse

func MustParse(data string) map[string]string

MustParse works the same as Parse but panics on error

func Parse

func Parse(data string) (map[string]string, error)

Parse reads a string in the .env format and returns a map of the extracted key=values.

Ported from https://github.com/bkeepers/dotenv/blob/84f33f48107c492c3a99bd41c1059e7b4c1bb67a/lib/dotenv/parser.rb

Types

This section is empty.

Jump to

Keyboard shortcuts

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