chore: module update
This commit is contained in:
parent
9c4404767e
commit
1775a7b444
@ -9,7 +9,6 @@ package main
|
|||||||
|
|
||||||
import "gitter.top/common/gobuf"
|
import "gitter.top/common/gobuf"
|
||||||
|
|
||||||
func
|
|
||||||
func main() {
|
func main() {
|
||||||
parser, err := NewParser("example.proto")
|
parser, err := NewParser("example.proto")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -25,4 +24,4 @@ func main() {
|
|||||||
parser.AddRPC("User", "Update")
|
parser.AddRPC("User", "Update")
|
||||||
// 添加一个Service Member
|
// 添加一个Service Member
|
||||||
parser.AddService("Member")
|
parser.AddService("Member")
|
||||||
```
|
```
|
||||||
|
6
go.mod
6
go.mod
@ -3,9 +3,9 @@ module gitter.top/common/gobuf
|
|||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/emicklei/proto v1.11.1
|
github.com/emicklei/proto v1.12.1
|
||||||
github.com/stretchr/testify v1.8.2
|
github.com/stretchr/testify v1.8.4
|
||||||
google.golang.org/protobuf v1.30.0
|
google.golang.org/protobuf v1.31.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
5
gobuf.go
5
gobuf.go
@ -3,10 +3,11 @@ package gobuf
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/emicklei/proto"
|
|
||||||
"gitter.top/sync/proto-contrib/pkg/protofmt"
|
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/emicklei/proto"
|
||||||
|
"gitter.top/sync/proto-contrib/pkg/protofmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Parser struct {
|
type Parser struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user