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