Skip to content

Commit

Permalink
up: revert some dotnev codes for compat old version
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Oct 9, 2022
1 parent 9bae072 commit 7e45b6b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotnev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

Package `dotenv` that supports importing data from files (eg `.env`) to ENV

> Deprecated: please use package https://github.com/gookit/ini/v2/dotenv
32 changes: 32 additions & 0 deletions dotnev/dotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,35 @@
//
// Deprecated: please use github.com/gookit/ini/v2/dotenv
package dotnev

import "github.com/gookit/ini/v2/dotenv"

// Load and parse .env file data to os ENV.
//
// Usage:
//
// dotenv.Load("./", ".env")
//
// Deprecated: please use github.com/gookit/ini/v2/dotenv
//
//goland:noinspection ALL
var (
Load = dotenv.Load
LoadExists = dotenv.LoadExists
LoadFromMap = dotenv.LoadFromMap

LoadedData = dotenv.LoadedData
ClearLoaded = dotenv.ClearLoaded
DontUpperEnvKey = dotenv.DontUpperEnvKey
)

// Get ENV value by key
//
// Deprecated: please use github.com/gookit/ini/v2/dotenv
//
//goland:noinspection ALL
var (
Get = dotenv.Get
Bool = dotenv.Bool
Int = dotenv.Int
)

0 comments on commit 7e45b6b

Please sign in to comment.