Versions in this module Expand all Collapse all v1 v1.0.3 Aug 13, 2020 v1.0.2 Jul 5, 2020 v1.0.0 Aug 25, 2018 Changes in this version + var Debug = log.New(ioutil.Discard, "[DBUG]", log.LstdFlags | log.Lshortfile) + var ErrNegAskDenied = errors.New("Ask violates let") + var Error = log.New(ioutil.Discard, "[ERRO]", log.LstdFlags | log.Lshortfile) + var Trace = log.New(ioutil.Discard, "[TRCE]", log.LstdFlags | log.Lmicroseconds | log.Lshortfile) + type Command byte + const AO + const AP + const AYT + const BRK + const DM + const EC + const EL + const EOF + const EOR + const GA + const IP + const NOP + const SP + func (i Command) String() string + type Ctx struct + func NewReadWriter(rw io.ReadWriter, opts ...Option) *Ctx + func (t *Ctx) Read(b []byte) (n int, err error) + func (t Ctx) AskHim(opt Option, enable bool) error + func (t Ctx) AskUs(opt Option, enable bool) error + func (t Ctx) SendCmd(cmd Command) + func (t Ctx) SendParams(opt Option, params []byte) + func (t Ctx) Write(b []byte) (int, error) + type Option interface + Byte func() byte + LetHim func() bool + LetUs func() bool + Params func(tn *Ctx, params []byte) + SetHim func(tn *Ctx, enabled bool) + SetUs func(tn *Ctx, enabled bool) + String func() string