Let's suppose that in the below I wanted Time to be validate:"min=10,max=20" when used as WriteTimeout and validate:"min=5,max=10" when used as ReadTimeout. How would you set the tags to do this if it's possible?
type DatabaseConfig struct {
WriteTimeout TimeConfig
ReadTimeout TimeConfig
}
type TimeConfig struct {
String string
Time int
}
Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.
Let's suppose that in the below I wanted
Time
to bevalidate:"min=10,max=20"
when used asWriteTimeout
andvalidate:"min=5,max=10"
when used asReadTimeout
. How would you set the tags to do this if it's possible?