Skip to content

Commit

Permalink
Replace toml deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakaznacheev committed Oct 10, 2022
2 parents f3c3c20 + 33351de commit 130ef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanenv.go
Expand Up @@ -159,7 +159,7 @@ func parseJSON(r io.Reader, str interface{}) error {

// parseTOML parses TOML from reader to data structure
func parseTOML(r io.Reader, str interface{}) error {
_, err := toml.DecodeReader(r, str)
_, err := toml.NewDecoder(r).Decode(str)
return err
}

Expand Down

0 comments on commit 130ef83

Please sign in to comment.