MakeTuple constructs a new instance of a TupleFamily type with the given field types (some/all of which may be other TupleFamily types). Warning: the contents slice is used directly; the caller should not modify it after calling this function.
(contents []*T)
| 1049 | // Warning: the contents slice is used directly; the caller should not modify it |
| 1050 | // after calling this function. |
| 1051 | func MakeTuple(contents []*T) *T { |
| 1052 | return &T{InternalType: InternalType{ |
| 1053 | Family: TupleFamily, Oid: oid.T_record, TupleContents: contents, Locale: &emptyLocale, |
| 1054 | }} |
| 1055 | } |
| 1056 | |
| 1057 | // MakeLabeledTuple constructs a new instance of a TupleFamily type with the |
| 1058 | // given field types and labels. |
no outgoing calls
no test coverage detected