summaryrefslogtreecommitdiffstats
path: root/testing/resources/golang_hooks_repo/golang-hello-world/main.go
blob: 1e3c591a207904198470e764e8c5427076225e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
}