Golang – go-playground/validator – How to include single inverted comma (‘) inside oneof rule
I am trying to validate a struct field in Golang using the go-playground/validator/v10 package. Specifically, I want to use the oneof tag to validate that the field value matches one of the predefined values, which includes strings with single quotes (‘). Here’s the code I am using: