[WIP] Initial commit
This commit is contained in:
21
cmd/01-LoadJsonFile/main.go
Normal file
21
cmd/01-LoadJsonFile/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"doll/internal/doll"
|
||||
"doll/internal/log"
|
||||
"os"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.Init("info", os.Stderr)
|
||||
log.Info("loading config.json")
|
||||
|
||||
data := doll.LoadJsonFile("test_data/config.json")
|
||||
|
||||
log.Info("data fron config.json is")
|
||||
spew.Dump(data)
|
||||
}
|
||||
|
||||
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|
||||
Reference in New Issue
Block a user