func init()

in internal/spec/spec.go [93:106]


func init() {
	_, filename, _, ok := runtime.Caller(0)
	if !ok {
		panic("cannot recover information from runtime.Caller")
	}
	f := path.Join(filepath.ToSlash(filepath.Dir(filename)), "v1.json")
	b, err := os.ReadFile(f)
	if err != nil {
		panic(errors.Wrap(err, "reading spec version 1 failed"))
	}
	if err := json.Unmarshal(b, &V1); err != nil {
		panic(errors.Wrap(err, "initializing spec version 1 failed"))
	}
}