https://github.com/junlapong/dotenv
Utility for load file .env to environment variables of current terminal session
https://github.com/junlapong/dotenv
dotenv golang
Last synced: 25 days ago
JSON representation
Utility for load file .env to environment variables of current terminal session
- Host: GitHub
- URL: https://github.com/junlapong/dotenv
- Owner: junlapong
- License: mit
- Created: 2021-06-30T03:53:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T03:54:40.000Z (almost 5 years ago)
- Last Synced: 2025-12-18T13:14:52.116Z (6 months ago)
- Topics: dotenv, golang
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotenv
Load file `.env` to environment variables of current terminal session
## Installation
```
go get -u github.com/junlapong/dotenv
```
## Usage
Make a `.env` file that looks something like
```
FOO=BAR
```
then call
```
$ dotenv
$ echo $FOO
BAR
```
## TODO
- [ ] Support `dotenv -f /path/to/.env` file