-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.DS_Store | ||
.vscode/* | ||
.idea/* | ||
|
||
bin/* | ||
|
||
# Ignore everything in vendor/, except for *.go files, | ||
# LICENSE and COPYING. Ignore Go tests. | ||
vendor/**/* | ||
!vendor/**/ | ||
!vendor/**/*.go | ||
!vendor/**/*.h | ||
!vendor/**/*.s | ||
!vendor/**/*.c | ||
!vendor/**/*.proto | ||
!vendor/**/LICENSE* | ||
!vendor/**/COPYING* | ||
vendor/**/*_test.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
all: | ||
@echo "*****************************************" | ||
@echo "** WebRPC Dev **" | ||
@echo "*****************************************" | ||
@echo "make <cmd>" | ||
@echo "" | ||
@echo "commands:" | ||
@echo "" | ||
@echo " + Testing:" | ||
@echo " - test" | ||
@echo "" | ||
@echo " + Builds:" | ||
@echo " - build" | ||
@echo " - clean" | ||
@echo " - generate" | ||
@echo "" | ||
@echo " + Dep management:" | ||
@echo " - dep" | ||
@echo " - dep-upgrade-all" | ||
@echo "" | ||
|
||
|
||
build: | ||
go build -o ./bin/webrpc-gen ./cmd/webrpc-gen | ||
|
||
test: generate | ||
go test -v ./... | ||
|
||
generate: | ||
go generate ./... | ||
|
||
clean: | ||
rm -rf ./bin | ||
|
||
dep: | ||
@export GO111MODULE=on && \ | ||
go mod tidy && \ | ||
rm -rf ./vendor && go mod vendor | ||
|
||
dep-upgrade-all: | ||
@GO111MODULE=on go get -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package proto | ||
|
||
import ( | ||
"bytes" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters