StructExcept validates all fields except the ones passed in. Fields may be provided in a namespaced fashion relative to the struct provided i.e. NestedStruct.Field or NestedArrayField[0].Struct.Name and returns nil or ValidationErrors as error You will need to assert the error if it's not nil i.e. err.(validator.ValidationErrors) to access the map of errors.

StructExcept is referenced in 0 repositories