Basic is a type parameter constraint for functions accepting basic types. It represents the supported basic types this package can cast to.
| 15 | // |
| 16 | // It represents the supported basic types this package can cast to. |
| 17 | type Basic interface { |
| 18 | string | bool | Number | time.Time | time.Duration |
| 19 | } |
| 20 | |
| 21 | // ToE casts any value to a [Basic] type. |
| 22 | func ToE[T Basic](i any) (T, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…