File: README.md

package info (click to toggle)
direnv 2.37.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 872 kB
  • sloc: sh: 1,499; csh: 83; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# go-dotenv

Go parsing library for the dotenv format.

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

This library was developed specifically for [direnv](https://direnv.net).

## Features

* `k=v` format
* bash `export k=v` format
* yaml `k: v` format
* variable expansion, including default values as in `${FOO:-default}`
* comments

## Missing

* probably needs API breakage

## Alternatives

Some other good alternatives with various variations.

* https://github.com/joho/godotenv
* https://github.com/lazureykis/dotenv
* https://github.com/subosito/gotenv