1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

dep: use RomiChan/protobuf

This commit is contained in:
wdvxdr 2021-11-24 21:56:36 +08:00
parent 4c60c8ee47
commit 4bdb791334
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
4 changed files with 6 additions and 3 deletions

View File

@ -43,7 +43,7 @@ func (r *JceReader) peakHead() (h HeadData, l int32) {
} }
func (r *JceReader) skip(l int) { func (r *JceReader) skip(l int) {
r.readBytes(l) r.off += l
} }
func (r *JceReader) skipField(t byte) { func (r *JceReader) skipField(t byte) {

1
go.mod
View File

@ -3,6 +3,7 @@ module github.com/Mrs4s/MiraiGo
go 1.16 go 1.16
require ( require (
github.com/RomiChan/protobuf v0.0.0-20211124134334-257932207c53
github.com/klauspost/compress v1.13.6 github.com/klauspost/compress v1.13.6
github.com/pkg/errors v0.9.1 github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.3.0 github.com/stretchr/testify v1.3.0

2
go.sum
View File

@ -1,3 +1,5 @@
github.com/RomiChan/protobuf v0.0.0-20211124134334-257932207c53 h1:sbaXMniSPMlCKtwrBvCZd53kUf2upvmOE/Dku6gFtXY=
github.com/RomiChan/protobuf v0.0.0-20211124134334-257932207c53/go.mod h1:2h54jTA7gqc5o5UjwPUZm0G8D218mEpu8WYAnNcvE7I=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=

View File

@ -1,8 +1,8 @@
package proto package proto
import "google.golang.org/protobuf/proto" import "github.com/RomiChan/protobuf/proto"
type Message = proto.Message type Message = interface{}
func Marshal(m Message) ([]byte, error) { func Marshal(m Message) ([]byte, error) {
return proto.Marshal(m) return proto.Marshal(m)