Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
} else {
// No env file but we will still extract our config from the env
// variables.
return fromEnv[T](ops)

Check failure on line 78 in dotconfig.go

View workflow job for this annotation

GitHub Actions / build

undefined: fromEnv
}
}
defer file.Close()
Expand Down Expand Up @@ -145,7 +145,7 @@
os.Setenv(key, value)
}
// Next, populate config file based on struct tags and return populated config
return fromEnv[T](decodedOpts)

Check failure on line 148 in dotconfig.go

View workflow job for this annotation

GitHub Actions / build

undefined: fromEnv
}

var (
Expand All @@ -156,7 +156,7 @@
ErrUnsupportedFieldType = errors.New("unsupported field type")
)

func fromEnv[T any](opts options) (T, error) {
func FromEnv[T any](opts options) (T, error) {
var config T
errs := joinError{}
// Reflect into our config
Expand Down
Loading