IsAlias returns true if the data type is a user type backed by a primitive type (so call aliased type).
(dt DataType)
| 270 | // IsAlias returns true if the data type is a user type backed by a primitive |
| 271 | // type (so call aliased type). |
| 272 | func IsAlias(dt DataType) bool { |
| 273 | _, isut := dt.(UserType) |
| 274 | return isut && IsPrimitive(dt) |
| 275 | } |
| 276 | |
| 277 | // Equal compares the types recursively and returns true if they are equal. Two |
| 278 | // types are equal if: |