String returns the string representation of s.
()
| 80 | |
| 81 | // String returns the string representation of s. |
| 82 | func (s ValidationScheme) String() string { |
| 83 | switch s { |
| 84 | case UnsetValidation: |
| 85 | return "unset" |
| 86 | case LegacyValidation: |
| 87 | return "legacy" |
| 88 | case UTF8Validation: |
| 89 | return "utf8" |
| 90 | default: |
| 91 | panic(fmt.Errorf("unhandled ValidationScheme: %d", s)) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // MarshalYAML implements the yaml.Marshaler interface. |
| 96 | func (s ValidationScheme) MarshalYAML() (any, error) { |
no outgoing calls
no test coverage detected