Philippe Caseiro 67e8485958 feat(api): adding api server code
templater can be used as a commmand line tool or as an api server.
2022-06-15 14:33:10 +02:00

18 lines
205 B
Go

package utils
import (
"github.com/hashicorp/hcl/v2"
)
func CheckErr(e error) {
if e != nil {
panic(e)
}
}
func CheckDiags(diag hcl.Diagnostics) {
if diag.HasErrors() {
panic(diag.Error())
}
}