Toml-Go
2 posts tagged with "Toml-Go"
- Search Gear 7 - gocheck, gobyexample, toml-go!
Search Gear Notes Go, gocheck, gobyexample, toml-go Thanks to @gniemeyer - gustavo @ http://niemeyer.net who pointed me at http://tour.golang.org/ so that I could understand receivers (which is the way go does methods). Stumbled over closures - but put right by @mmcgrana https://gobyexample.com/closures Alright now it’s time to get started - but I think I’ll use the vanilla go testing framework to start with. So initially (see Day 5): I need to
- Search Gear 6 - Spew, Hopwatch, toml-go!
Search Gear Notes Go, Spew, Hopwatch, toml-go Debugging github.com/davecgh/go-spew github.com/emicklei/hopwatch hopwatch uses go-spew Dump and Dumpf Both are good and seem useful. http://ernestmicklei.com/2012/12/14/hopwatch-a-debugging-tool-for-go/ go-toml-config does not work and the documentation is wrong. Persistently get ‘panic: myconfig.conf is not a valid TOML file. See https://github.com/mojombo/toml' even when it’s the test file from https://github.com/mojombo/toml package main import “github.com/stvp/go-toml-config” var ( title= config.String(“title”, “Unknown”) name = config.String(“owner.name”, “”) git = config.String(“owner.GitHub”, “”) bio = config.