go get -u github.com/gotoolkit/config
mkdir -p config
echo '{"hello":"world"}' > config/config.json
package main
import (
"log"
"github.com/gotoolkit/config"
)
func main() {
err := config.Setup(config.WithWatchEnable(true))
if err != nil {
log.Fatalln(err)
}
log.Println(config.Get("hello"))
}