mirror of
https://github.com/goccy/go-yaml.git
synced 2025-12-08 06:09:57 +00:00
13 lines
406 B
Go
13 lines
406 B
Go
package yaml
|
|
|
|
// StructValidator need to implement Struct method only
|
|
// ( see https://pkg.go.dev/github.com/go-playground/validator/v10#Validate.Struct )
|
|
type StructValidator interface {
|
|
Struct(interface{}) error
|
|
}
|
|
|
|
// FieldError need to implement StructField method only
|
|
// ( see https://pkg.go.dev/github.com/go-playground/validator/v10#FieldError )
|
|
type FieldError interface {
|
|
StructField() string
|
|
}
|