Skip to content

Commit

Permalink
Add autoload as an envlang package
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysses Souza <[email protected]>
  • Loading branch information
ulyssessouza committed Dec 22, 2024
1 parent 07ae1a0 commit c324f61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions autoload/init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package autoload

import "github.com/ulyssessouza/envlang"

func init() {
envlang.Load() //nolint:errcheck

Check failure on line 6 in autoload/init.go

View workflow job for this annotation

GitHub Actions / test

directive `//nolint:errcheck` should provide explanation such as `//nolint:errcheck // this is why` (nolintlint)
}
6 changes: 1 addition & 5 deletions compat/joho/godotenv/autoload/autoload.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package autoload

import (
"github.com/ulyssessouza/envlang"
_ "github.com/ulyssessouza/envlang/autoload"

Check warning on line 4 in compat/joho/godotenv/autoload/autoload.go

View workflow job for this annotation

GitHub Actions / test

blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
)

func init() {
envlang.Load() //nolint:errcheck // This is not necessary to check
}

0 comments on commit c324f61

Please sign in to comment.