File tree Expand file tree Collapse file tree 6 files changed +70
-0
lines changed
Expand file tree Collapse file tree 6 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ apiserver
2+
3+ # Created by .ignore support plugin (hsz.mobi)
4+ # ## Go template
5+ # Binaries for programs and plugins
6+ * .exe
7+ * .exe~
8+ * .dll
9+ * .so
10+ * .dylib
11+
12+ # Test binary, built with `go test -c`
13+ * .test
14+
15+ # Output of the go coverage tool, specifically when used with LiteIDE
16+ * .out
17+
18+ # Dependency directories (remove the comment below to include it)
19+ # vendor/
20+
21+ # ## Example user template template
22+ # ## Example user template
23+
24+ # IntelliJ project files
25+ .idea
26+ * .iml
27+ out
28+ gen
Original file line number Diff line number Diff line change 1+ .PHONY : build
2+ build :
3+ go build -v ./cmd/apiserver
4+
5+ .PHONY : test
6+ test :
7+ go test -v -race -timeout 30s ./...
8+ .DEFAULT_GOAL := build
Original file line number Diff line number Diff line change 1+ # Simple Go REST API server by tutorial
Original file line number Diff line number Diff line change 1+ bind_addr = " :8080"
2+ log_level = " debug"
Original file line number Diff line number Diff line change 1+ module github.com/dannycrief/go-http-rest-api
2+
3+ go 1.15
4+
5+ require (
6+ github.com/BurntSushi/toml v0.3.1
7+ github.com/gorilla/mux v1.8.0
8+ github.com/sirupsen/logrus v1.7.0
9+ github.com/stretchr/testify v1.6.1
10+ )
Original file line number Diff line number Diff line change 1+ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ =
2+ github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
3+ github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
5+ github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
6+ github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI =
7+ github.com/gorilla/mux v1.8.0 /go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So =
8+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
9+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
10+ github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM =
11+ github.com/sirupsen/logrus v1.7.0 /go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0 =
12+ github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4 =
13+ github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
14+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
15+ github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0 =
16+ github.com/stretchr/testify v1.6.1 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
17+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4 =
18+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
19+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
20+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo =
21+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
You can’t perform that action at this time.
0 commit comments