Added support for go modules

This commit is contained in:
Derrick J. Wippler 2019-04-09 17:36:47 -05:00
parent ce8fe99325
commit e72846e064
4 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*~
.idea/

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/golang/groupcache
require github.com/golang/protobuf v1.3.1

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=

12
proto.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/sh
# Make sure the script fails fast.
set -e
set -u
set -x
PROTO_DIR=groupcachepb
protoc -I=$PROTO_DIR \
--go_out=$PROTO_DIR \
$PROTO_DIR/groupcache.proto