MakeArray constructs a new instance of an ArrayFamily type with the given element type (which may itself be an ArrayFamily type).
(typ *T)
| 1034 | // MakeArray constructs a new instance of an ArrayFamily type with the given |
| 1035 | // element type (which may itself be an ArrayFamily type). |
| 1036 | func MakeArray(typ *T) *T { |
| 1037 | arr := &T{InternalType: InternalType{ |
| 1038 | Family: ArrayFamily, |
| 1039 | Oid: calcArrayOid(typ), |
| 1040 | ArrayContents: typ, |
| 1041 | Locale: &emptyLocale, |
| 1042 | }} |
| 1043 | return arr |
| 1044 | } |
| 1045 | |
| 1046 | // MakeTuple constructs a new instance of a TupleFamily type with the given |
| 1047 | // field types (some/all of which may be other TupleFamily types). |
no test coverage detected