Skip to content

Commit 6def209

Browse files
authored
Merge pull request #46 from PaulSonOfLars/gomodVersioning
Update gomod file to point to /v4, as defined by gomod standard.
2 parents 7d44399 + a43c820 commit 6def209

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+153
-153
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# go-protoparser [![GoDoc](https://godoc.org/github.com/yoheimuta/go-protoparser?status.svg)](https://godoc.org/github.com/yoheimuta/go-protoparser)[![CircleCI](https://circleci.com/gh/yoheimuta/go-protoparser/tree/master.svg?style=svg)](https://circleci.com/gh/yoheimuta/go-protoparser/tree/master)[![Go Report Card](https://goreportcard.com/badge/github.com/yoheimuta/go-protoparser)](https://goreportcard.com/report/github.com/yoheimuta/go-protoparser)[![Release](http://img.shields.io/github/release/yoheimuta/go-protoparser.svg?style=flat)](https://github.com/yoheimuta/go-protoparser/releases/latest)[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/yoheimuta/go-protoparser/blob/master/LICENSE.md)
1+
# go-protoparser [![GoDoc](https://godoc.org/github.com/yoheimuta/go-protoparser/v4?status.svg)](https://godoc.org/github.com/yoheimuta/go-protoparser/v4)[![CircleCI](https://circleci.com/gh/yoheimuta/go-protoparser/tree/master.svg?style=svg)](https://circleci.com/gh/yoheimuta/go-protoparser/tree/master)[![Go Report Card](https://goreportcard.com/badge/github.com/yoheimuta/go-protoparser/v4)](https://goreportcard.com/report/github.com/yoheimuta/go-protoparser/v4)[![Release](http://img.shields.io/github/release/yoheimuta/go-protoparser.svg?style=flat)](https://github.com/yoheimuta/go-protoparser/releases/latest)[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/yoheimuta/go-protoparser/blob/master/LICENSE.md)
22

33
go-protoparser is a yet another Go package which parses a Protocol Buffer file (proto2+proto3).
44

55
- Conforms to the exactly [official spec](https://developers.google.com/protocol-buffers/docs/reference/proto3-spec).
66
- Undergone rigorous testing. The parser can parses all examples of the official spec well.
7-
- Easy to use the parser. You can just call the [Parse function](https://godoc.org/github.com/yoheimuta/go-protoparser#Parse) and receive the [Proto struct](https://godoc.org/github.com/yoheimuta/go-protoparser/parser#Proto).
8-
- If you don't care about the order of body elements, consider to use the [unordered.Proto struct](https://godoc.org/github.com/yoheimuta/go-protoparser/interpret/unordered#Proto).
9-
- Or if you want to use the visitor pattern, use the [Visitor struct](https://godoc.org/github.com/yoheimuta/go-protoparser/parser#Visitor).
7+
- Easy to use the parser. You can just call the [Parse function](https://godoc.org/github.com/yoheimuta/go-protoparser/v4#Parse) and receive the [Proto struct](https://godoc.org/github.com/yoheimuta/go-protoparser/v4/parser#Proto).
8+
- If you don't care about the order of body elements, consider to use the [unordered.Proto struct](https://godoc.org/github.com/yoheimuta/go-protoparser/v4/interpret/unordered#Proto).
9+
- Or if you want to use the visitor pattern, use the [Visitor struct](https://godoc.org/github.com/yoheimuta/go-protoparser/v4/parser#Visitor).
1010

1111
### Installation
1212

1313
```
14-
go get github.com/yoheimuta/go-protoparser
14+
go get github.com/yoheimuta/go-protoparser/v4
1515
```
1616

1717
### Example

_example/dump/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"path/filepath"
1010

11-
protoparser "github.com/yoheimuta/go-protoparser"
11+
protoparser "github.com/yoheimuta/go-protoparser/v4"
1212
)
1313

1414
var (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/yoheimuta/go-protoparser
1+
module github.com/yoheimuta/go-protoparser/v4
22

33
go 1.13

internal/lexer/constant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lexer
33
import (
44
"strings"
55

6-
"github.com/yoheimuta/go-protoparser/internal/lexer/scanner"
6+
"github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
77
)
88

99
// ReadConstant reads a constant. If permissive is true, accepts multiline string literals.

internal/lexer/constant_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
88
)
99

1010
func TestLexer2_ReadConstant(t *testing.T) {

internal/lexer/emptyStatement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lexer
22

3-
import "github.com/yoheimuta/go-protoparser/internal/lexer/scanner"
3+
import "github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
44

55
// ReadEmptyStatement reads an emptyStatement.
66
// emptyStatement = ";"

internal/lexer/emptyStatement_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
88
)
99

1010
func TestLexer2_ReadEmptyStatement(t *testing.T) {

internal/lexer/enumType.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lexer
22

3-
import "github.com/yoheimuta/go-protoparser/internal/lexer/scanner"
3+
import "github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
44

55
// ReadEnumType reads a messageType.
66
// enumType = [ "." ] { ident "." } enumName

internal/lexer/enumType_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
88
)
99

1010
func TestLexer2_ReadEnumType(t *testing.T) {

internal/lexer/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lexer
33
import (
44
"runtime"
55

6-
"github.com/yoheimuta/go-protoparser/parser/meta"
6+
"github.com/yoheimuta/go-protoparser/v4/parser/meta"
77
)
88

99
func (lex *Lexer) unexpected(found, expected string) error {

0 commit comments

Comments
 (0)