mirror of
https://github.com/joho/godotenv.git
synced 2025-06-21 11:26:02 +00:00
Change package name back to joho/godotenv
This commit is contained in:
parent
29b5be9cdc
commit
63ea8bf09b
14
README.md
14
README.md
@ -1,4 +1,4 @@
|
|||||||
# GoDotEnv [](https://travis-ci.org/mniak/godotenv) [](https://ci.appveyor.com/project/mniak/godotenv) [](https://goreportcard.com/report/github.com/mniak/godotenv)
|
# GoDotEnv [](https://travis-ci.org/joho/godotenv) [](https://ci.appveyor.com/project/joho/godotenv) [](https://goreportcard.com/report/github.com/joho/godotenv)
|
||||||
|
|
||||||
A Go (golang) port of the Ruby dotenv project (which loads env vars from a .env file)
|
A Go (golang) port of the Ruby dotenv project (which loads env vars from a .env file)
|
||||||
|
|
||||||
@ -17,12 +17,12 @@ There is test coverage and CI for both linuxish and windows environments, but I
|
|||||||
As a library
|
As a library
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go get github.com/mniak/godotenv
|
go get github.com/joho/godotenv
|
||||||
```
|
```
|
||||||
|
|
||||||
or if you want to use it as a bin command
|
or if you want to use it as a bin command
|
||||||
```shell
|
```shell
|
||||||
go get github.com/mniak/godotenv/cmd/godotenv
|
go get github.com/joho/godotenv/cmd/godotenv
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@ -40,7 +40,7 @@ Then in your Go app you can do something like
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mniak/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
@ -61,7 +61,7 @@ func main() {
|
|||||||
If you're even lazier than that, you can just take advantage of the autoload package which will read in `.env` on import
|
If you're even lazier than that, you can just take advantage of the autoload package which will read in `.env` on import
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import _ "github.com/mniak/godotenv/autoload"
|
import _ "github.com/joho/godotenv/autoload"
|
||||||
```
|
```
|
||||||
|
|
||||||
While `.env` in the project root is the default, you don't have to be constrained, both examples below are 100% legit
|
While `.env` in the project root is the default, you don't have to be constrained, both examples below are 100% legit
|
||||||
@ -177,11 +177,11 @@ Contributions are most welcome! The parser itself is pretty stupidly naive and I
|
|||||||
|
|
||||||
Releases should follow [Semver](http://semver.org/) though the first couple of releases are `v1` and `v1.1`.
|
Releases should follow [Semver](http://semver.org/) though the first couple of releases are `v1` and `v1.1`.
|
||||||
|
|
||||||
Use [annotated tags for all releases](https://github.com/mniak/godotenv/issues/30). Example `git tag -a v1.2.1`
|
Use [annotated tags for all releases](https://github.com/joho/godotenv/issues/30). Example `git tag -a v1.2.1`
|
||||||
|
|
||||||
## CI
|
## CI
|
||||||
|
|
||||||
Linux: [](https://travis-ci.org/mniak/godotenv) Windows: [](https://ci.appveyor.com/project/mniak/godotenv)
|
Linux: [](https://travis-ci.org/joho/godotenv) Windows: [](https://ci.appveyor.com/project/joho/godotenv)
|
||||||
|
|
||||||
## Who?
|
## Who?
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@ package autoload
|
|||||||
/*
|
/*
|
||||||
You can just read the .env file on import just by doing
|
You can just read the .env file on import just by doing
|
||||||
|
|
||||||
import _ "github.com/mniak/godotenv/autoload"
|
import _ "github.com/joho/godotenv/autoload"
|
||||||
|
|
||||||
And bob's your mother's brother
|
And bob's your mother's brother
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "github.com/mniak/godotenv"
|
import "github.com/joho/godotenv"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
godotenv.Load()
|
godotenv.Load()
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mniak/godotenv"
|
"github.com/joho/godotenv/godotenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
4
go.mod
4
go.mod
@ -1,3 +1,5 @@
|
|||||||
module github.com/mniak/godotenv
|
module github.com/joho/godotenv/godotenv
|
||||||
|
|
||||||
go 1.14
|
go 1.14
|
||||||
|
|
||||||
|
require github.com/joho/godotenv v1.3.0 // indirect
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Package godotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv)
|
// Package godotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv)
|
||||||
//
|
//
|
||||||
// Examples/readme can be found on the github page at https://github.com/mniak/godotenv
|
// Examples/readme can be found on the github page at https://github.com/joho/godotenv/godotenv
|
||||||
//
|
//
|
||||||
// The TL;DR is that you make a .env file that looks something like
|
// The TL;DR is that you make a .env file that looks something like
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user