Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
pkg rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Micklei authored and Ernest Micklei committed Jan 28, 2017
1 parent 26596d2 commit 43bb79c
Show file tree
Hide file tree
Showing 25 changed files with 47 additions and 27 deletions.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2017 Ernest Micklei

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto3parser
# proto3

Package for parsing Google Protocol Buffers [.proto files version 3] (https://developers.google.com/protocol-buffers/docs/reference/proto3-spec)

The command folder contains a pretty printer.

(c) 2017, ernestmicklei.com.
(c) 2017, ernestmicklei.com. MIT License. Contributions welcome.
2 changes: 1 addition & 1 deletion enum.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion enum_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion field.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion field_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion import.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion import_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion message_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion option.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion option_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion package.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

type Package struct {
Name string
Expand Down
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import "io"

Expand Down
2 changes: 1 addition & 1 deletion parser_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion proto.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

type Proto struct {
Syntax *Syntax
Expand Down
2 changes: 1 addition & 1 deletion proto_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion scanner.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

// partial code from https://raw.githubusercontent.com/benbjohnson/sql-parser/master/scanner.go

Expand Down
2 changes: 1 addition & 1 deletion scanner_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion service.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion service_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion syntax.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion syntax_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion token.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

// token represents a lexical token.
type token int
Expand Down
2 changes: 1 addition & 1 deletion visitor.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto3parser
package proto3

type Visitor interface {
VisitMessage(m *Message)
Expand Down

0 comments on commit 43bb79c

Please sign in to comment.