Skip to content

Commit

Permalink
dont export build
Browse files Browse the repository at this point in the history
  • Loading branch information
sethpollack committed Jan 14, 2025
1 parent 55a1767 commit 8241d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Options struct {
Matcher *matcher.Matcher
}

func Build(opts ...Option) (*Options, error) {
func build(opts ...Option) (*Options, error) {
o := &Options{
Walker: walker.New(),
Decoder: decoder.New(),
Expand Down Expand Up @@ -441,7 +441,7 @@ func WithDotEnvSource(path string) LoaderOption {
// and the specified options. It traverses the struct fields and applies the
// environment configuration according to the defined rules and options.
func Parse(cfg any, opts ...Option) error {
b, err := Build(opts...)
b, err := build(opts...)
if err != nil {
return err
}
Expand Down

0 comments on commit 8241d78

Please sign in to comment.