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)
| 1250 | // Warning: the contents slice is used directly; the caller should not modify it |
| 1251 | // after calling this function. |
| 1252 | func MakeTuple(contents []*T) *T { |
| 1253 | return &T{InternalType: InternalType{ |
| 1254 | Family: TupleFamily, Oid: oid.T_record, TupleContents: contents, Locale: &emptyLocale, |
| 1255 | }} |
| 1256 | } |
| 1257 | |
| 1258 | // MakeLabeledTuple constructs a new instance of a TupleFamily type with the |
| 1259 | // given field types and labels. |
no outgoing calls
no test coverage detected
searching dependent graphs…