vendor: Update github.com/gogo/protobuf, keeping all files

gvt fetch -a, because we need the protobuf files etc for regeneration
This commit is contained in:
Jakob Borg
2017-06-14 05:22:37 +02:00
parent d862e79133
commit 93a04158fd
617 changed files with 760094 additions and 358 deletions

25
vendor/github.com/gogo/protobuf/gogoreplace/main.go generated vendored Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
)
func main() {
args := os.Args
if len(args) != 4 {
fmt.Println("gogoreplace wants three arguments")
fmt.Println(" gogoreplace oldsubstring newsubstring filename")
os.Exit(1)
}
data, err := ioutil.ReadFile(args[3])
if err != nil {
panic(err)
}
data = bytes.Replace(data, []byte(args[1]), []byte(args[2]), -1)
if err := ioutil.WriteFile(args[3], data, 0666); err != nil {
panic(err)
}
}