pre-commit/testing/resources/golang_hooks_repo/golang-hello-world/main.go
2017-01-24 13:49:22 -08:00

17 lines
211 B
Go

package main
import (
"fmt"
"github.com/BurntSushi/toml"
)
type Config struct {
What string
}
func main() {
var conf Config
toml.Decode("What = 'world'\n", &conf)
fmt.Printf("hello %v\n", conf.What)
}