Sign in
edge
/
third_party
/
pelletier
/
go-toml
/
30854544771ad0be7415f0035e1fc03ac722dd02
/
.
/
test_program
/
test_program.go
blob: 8f9da837a2ddd74af89a73a005afa7d4a5e1c44d [
file
]
package main
import (
"io/ioutil"
"os"
"github.com/pelletier/go-toml"
)
func main() {
bytes, err := ioutil.ReadAll(os.Stdin)
if err != nil {
os.Exit(2)
}
_, err = toml.Load(string(bytes))
if err == nil {
os.Exit(0)
} else {
os.Exit(1)
}
}