chore: module update

This commit is contained in:
xuthus5 2023-07-23 22:22:23 +08:00
parent 9c4404767e
commit 1775a7b444
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
3 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,6 @@ package main
import "gitter.top/common/gobuf"
func
func main() {
parser, err := NewParser("example.proto")
if err != nil {
@ -25,4 +24,4 @@ func main() {
parser.AddRPC("User", "Update")
// 添加一个Service Member
parser.AddService("Member")
```
```

6
go.mod
View File

@ -3,9 +3,9 @@ module gitter.top/common/gobuf
go 1.18
require (
github.com/emicklei/proto v1.11.1
github.com/stretchr/testify v1.8.2
google.golang.org/protobuf v1.30.0
github.com/emicklei/proto v1.12.1
github.com/stretchr/testify v1.8.4
google.golang.org/protobuf v1.31.0
)
require (

View File

@ -3,10 +3,11 @@ package gobuf
import (
"bytes"
"fmt"
"github.com/emicklei/proto"
"gitter.top/sync/proto-contrib/pkg/protofmt"
"io"
"os"
"github.com/emicklei/proto"
"gitter.top/sync/proto-contrib/pkg/protofmt"
)
type Parser struct {