1
0
Fork 0
pre-commit/testing/resources/golang_hooks_repo/golang-hello-world/main.go

18 lines
211 B
Go
Raw Normal View History

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)
}