File tree 4 files changed +15
-39
lines changed
4 files changed +15
-39
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ language: go
3
3
matrix :
4
4
fast_finish : true
5
5
include :
6
- - go : 1.10.x
7
6
- go : 1.11.x
8
7
env : GO111MODULE=on
9
8
- go : 1.12.x
@@ -18,7 +17,7 @@ before_install:
18
17
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
19
18
20
19
install :
21
- - if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make install; fi
20
+ - if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
22
21
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
23
22
- if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
24
23
Original file line number Diff line number Diff line change 1
1
GO ?= go
2
2
GOFMT ?= gofmt "-s"
3
- PACKAGES ?= $(shell $(GO ) list ./... | grep -v /vendor/)
4
- VETPACKAGES ?= $(shell $(GO ) list ./... | grep -v /vendor/ | grep -v /examples/)
5
- GOFILES := $(shell find . -name "* .go" -type f -not -path "./vendor/* ")
6
- TESTFOLDER := $(shell $(GO ) list ./... | grep -v /vendor/ | grep -v examples)
7
-
8
- all : install
9
-
10
- install : deps
11
- govendor sync
3
+ PACKAGES ?= $(shell $(GO ) list ./...)
4
+ VETPACKAGES ?= $(shell $(GO ) list ./... | grep -v /examples/)
5
+ GOFILES := $(shell find . -name "* .go")
6
+ TESTFOLDER := $(shell $(GO ) list ./... | grep -v examples)
12
7
13
8
.PHONY : test
14
9
test :
@@ -48,11 +43,6 @@ fmt-check:
48
43
vet :
49
44
$(GO ) vet $(VETPACKAGES )
50
45
51
- deps :
52
- @hash govendor > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
53
- $(GO ) get -u github.com/kardianos/govendor; \
54
- fi
55
-
56
46
.PHONY : lint
57
47
lint :
58
48
@hash golint > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
Original file line number Diff line number Diff line change 10
10
11
11
Thanks to [ path-to-regexp] ( https://github.com/pillarjs/path-to-regexp ) which is the original version written in javascript.
12
12
13
+ ## Installation
14
+
15
+ To install ` Path-to-RegExp ` package, you need to install Go and set your Go workspace first.
16
+
17
+ The first need [ Go] ( https://golang.org/ ) installed (** version 1.11+ is required** ), then you can use the below Go command to install ` Path-to-RegExp ` .
18
+
19
+ ``` sh
20
+ $ go get -u github.com/soongo/path-to-regexp
21
+ ```
22
+
13
23
## Usage
14
24
15
25
``` go
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments