Skip to content

Commit

Permalink
Fix Watch() doc
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 6, 2021
1 parent deea8ad commit 7d983f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ func main() {
return
}

// Throw away the old config and load a fresh copy.
log.Println("config changed. Reloading ...")
k = koanf.New(".")
k.Load(f, json.Parser())
k.Print()
})
Expand Down

0 comments on commit 7d983f3

Please sign in to comment.