TOMLという設定ファイルの為のミニ言語があり、それをGoで試してみた所、うまく読み込まれずにハマってしまったので、メモ。 config_test.go package main import ( "github.com/BurntSushi/toml" "testing" "fmt" ) type ConfToml struct { Keys SectionKeys `toml:"keys"` } type SectionKeys struct { Consumer_key string `toml:"consumer_key"` access_token string `toml:"access_token"` } // config の read func readSettingsConfig(path string, config *ConfToml) { _, err := to