Custom type validators
All golang validators allow to pass a custom type based on its value type. Bellow some valid examples.
type Status stringvar status Status = "up"val := v.Is(v.String(status).InSlice([]Status{"down", "up", "paused"}))
type Level intvar level Level = 1val = v.Is(v.Int(level).LessThan(Level(2)))
type Stage int64var stage Stage = 2val := v.Is(v.NumberP(&stage).GreaterThan(Stage(1)))