Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2022 Changes in this version + var Logger = log.New(os.Stderr, "XGB: ", log.Lshortfile) + var NewErrorFuncs = make(map[int]NewErrorFun) + var NewEventFuncs = make(map[int]NewEventFun) + var NewExtErrorFuncs = make(map[string]map[int]NewErrorFun) + var NewExtEventFuncs = make(map[string]map[int]NewEventFun) + func Errorf(format string, v ...interface{}) error + func Get16(buf []byte) uint16 + func Get32(buf []byte) uint32 + func Get64(buf []byte) uint64 + func Pad(n int) int + func PopCount(mask0 int) int + func Put16(buf []byte, v uint16) + func Put32(buf []byte, v uint32) + func Put64(buf []byte, v uint64) + func Sprintf(format string, v ...interface{}) string + func StringsJoin(ss []string, sep string) string + type Conn struct + DefaultScreen int + DisplayNumber int + ExtLock sync.RWMutex + Extensions map[string]byte + SetupBytes []byte + func NewConn() (*Conn, error) + func NewConnDisplay(display string) (*Conn, error) + func NewConnNet(netConn net.Conn) (*Conn, error) + func (c *Conn) Close() + func (c *Conn) NewCookie(checked, reply bool) *Cookie + func (c *Conn) NewId() (uint32, error) + func (c *Conn) NewRequest(buf []byte, cookie *Cookie) + func (c *Conn) PollForEvent() (Event, Error) + func (c *Conn) Sync() + func (c *Conn) WaitForEvent() (Event, Error) + type Cookie struct + Sequence uint16 + func (c Cookie) Check() error + func (c Cookie) Reply() ([]byte, error) + type Error interface + BadId func() uint32 + Error func() string + SequenceId func() uint16 + type Event interface + Bytes func() []byte + String func() string + type NewErrorFun func(buf []byte) Error + type NewEventFun func(buf []byte) Event