anchor.diff:    text_format ||= "true"
   
     text_null ||= "NULL"
  +
  +  encode_binary ||= binary_format
  +  decode_binary ||= binary_format
   %>
   
   package pgtype
  
positive.code: }
  <% end %>
  
  <% if binary_format == "true" %>
  func (dst *<%= pgtype_array_type %>) DecodeBinary(ci *ConnInfo, src []byte) error {
  	if src == nil {
  		*dst = <%= pgtype_array_type %>{Status: Null}
  
negative.code: }
  <% end %>
  
  <% if encode_binary == "true" %>
  	func (src <%= pgtype_array_type %>) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) {
  		switch src.Status {
  		case Null:
  