Skip to content

Commit

Permalink
export Load
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jan 22, 2024
1 parent 51793fe commit 01885c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func New(opts Options) (*Config, error) {
c.Deprecations = opts.Deprecations
}

err := c.load(opts.Path)
err := c.Load(opts.Path)
if err != nil {
return nil, err
}
Expand All @@ -97,8 +97,8 @@ func New(opts Options) (*Config, error) {
return c, nil
}

// load loads a configuration from a file and parses it into a Config struct.
func (c *Config) load(path string) error {
// Load loads a configuration from a file and parses it into a Config struct.
func (c *Config) Load(path string) error {
var err error

raw, err := os.ReadFile(path)
Expand Down

0 comments on commit 01885c6

Please sign in to comment.