mirror of
https://github.com/divan/txqr.git
synced 2026-09-03 00:37:46 +08:00
Move gomobile package to mobile
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
gomobile:
|
||||
gomobile bind -target=ios -o txqr.framework
|
||||
gomobile bind -target=ios -o txqr.framework github.com/divan/txqr/mobile
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
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(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user