mirror of
https://github.com/divan/txqr.git
synced 2026-08-31 07:17:27 +08:00
18 lines
353 B
Go
18 lines
353 B
Go
package txqr // package should have this name to work properly with gomobile
|
|
|
|
import (
|
|
"github.com/divan/txqr/protocol"
|
|
)
|
|
|
|
// Decoder implements txqr wrapper around protocol decoder.
|
|
type Decoder struct {
|
|
*protocol.Decoder
|
|
}
|
|
|
|
// NewDecoder creats new txqr decoder.
|
|
func NewDecoder() *Decoder {
|
|
return &Decoder{
|
|
Decoder: protocol.NewDecoder(),
|
|
}
|
|
}
|