A AnyValuer provides a generic function for a custom type to return standard go values. It allows for returning a `nil` value but does not provide any type checking at expression compile. A custom type may implement both AnyValuer and a type specific interface to enable both compile time checking a
| 33 | // A custom type may implement both AnyValuer and a type specific interface to enable both |
| 34 | // compile time checking and the ability to return a `nil` value. |
| 35 | type AnyValuer interface { |
| 36 | AsAny() any |
| 37 | } |
| 38 | |
| 39 | type IntValuer interface { |
| 40 | AsInt() int |
no outgoing calls
no test coverage detected
searching dependent graphs…