func (be *binaryEncoder) WriteBoolean(x bool) {
	if x {
		_, _ = be.buffer.Write(encBoolTrue)
	} else {
		_, _ = be.buffer.Write(encBoolFalse)
	}
}
WriteBoolean writes a boolean value.
package avro
import (
	"encoding/binary"
	"io"
	"math"
)
type Encoder interface {
	WriteNull(interface{})
	WriteBoolean(bool)
	WriteInt(int32)
	WriteLong(int64)
	WriteFloat(float32)
	WriteDouble(float64)
	WriteBytes([]byte)
	WriteString(string)
	WriteArrayStart(int64)
	WriteArrayNext(int64)
	WriteMapStart(int64)
	WriteMapNext(int64)
	WriteRaw([]byte)
}
type binaryEncoder struct {
	buffer io.Writer
}
func NewBinaryEncoder(buffer io.Writer) Encoder {
	return newBinaryEncoder(buffer)
}
func newBinaryEncoder(buffer io.Writer) *binaryEncoder {
	return &binaryEncoder{buffer: buffer}
}
func (be *binaryEncoder) WriteNull(_ interface{}) {
}
var encBoolTrue = []byte{0x01}
var encBoolFalse = []byte{0x00}