mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
17 lines
211 B
Go
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)
|
|
}
|