forked from coop-cloud-mirrors/godotenv
Make Load() without args open .env by default
This commit is contained in:
@ -9,6 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func Load(filenames ...string) (err error) {
|
||||
if len(filenames) == 0 {
|
||||
filenames = []string{".env"}
|
||||
}
|
||||
|
||||
for _, filename := range filenames {
|
||||
err = loadFile(filename)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user