Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 761 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 761 Bytes

go-dotenv

STATUS: deprecated. Use github.com/direnv/direnv/pkg/dotenv instead.

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.

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.