unpack_string/hw09_struct_validator/validator.go

18 lines
276 B
Go
Raw Normal View History

2023-10-30 15:21:12 +03:00
package hw09structvalidator
type ValidationError struct {
Field string
Err error
}
type ValidationErrors []ValidationError
func (v ValidationErrors) Error() string {
panic("implement me")
}
func Validate(v interface{}) error {
// Place your code here.
return nil
}