code: func (enc *Encoder) EncodeBool(v bool) (int, error) {
  	i := int32(0)
  	if v == true {
  		i = 1
  	}
  	return enc.EncodeInt(i)
  }
docs: // EncodeBool writes the XDR encoded representation of the passed boolean to the
  // encapsulated writer and returns the number of bytes written.
  //
  // A MarshalError with an error code of ErrIO is returned if writing the data
  // fails.
  //
  // Reference:
  // 	RFC Section 4.4 - Boolean
  // 	Represented as an XDR encoded enumeration where 0 is false and 1 is true