all: Update protobuf package 1.0.0 -> 1.2.0 (#5452)

Also adds a few file global options to keep the generated code similar
to what we already had.
This commit is contained in:
Jakob Borg
2019-01-14 11:53:36 +01:00
committed by GitHub
parent c87411851d
commit b01edca420
132 changed files with 41655 additions and 16821 deletions

View File

@@ -40,7 +40,7 @@ func Get() string {
version := strings.TrimSpace(string(versionBytes))
versions := strings.Split(version, " ")
if len(versions) != 2 {
panic("version string returned from protoc is seperated with a space: " + version)
panic("version string returned from protoc is separated with a space: " + version)
}
return versions[1]
}
@@ -48,7 +48,7 @@ func Get() string {
func parseVersion(version string) (int, error) {
versions := strings.Split(version, ".")
if len(versions) != 3 {
return 0, fmt.Errorf("version does not have 3 numbers seperated by dots: %s", version)
return 0, fmt.Errorf("version does not have 3 numbers separated by dots: %s", version)
}
n := 0
for _, v := range versions {