https://github.com/mikunalpha/httpsrvtpl
HTTP Service Project Structure Template In Go
https://github.com/mikunalpha/httpsrvtpl
Last synced: 9 months ago
JSON representation
HTTP Service Project Structure Template In Go
- Host: GitHub
- URL: https://github.com/mikunalpha/httpsrvtpl
- Owner: mikunalpha
- Created: 2018-05-04T14:54:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T15:59:43.000Z (over 7 years ago)
- Last Synced: 2025-01-30T00:41:21.607Z (11 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# httpsrvtpl
A HTTP Service Project Structure Template In Go.
## Dependencies
You can replace below tools and packages if you want.
### Tools
**Package Management**
- `github.com/Masterminds/glide`
### Packages
**Logger**
- `github.com/sirupsen/logrus`
**JSON**
- `github.com/json-iterator/go`
**Router**
- `github.com/gin-gonic/gin`
**Authentication**
- `github.com/dgrijalva/jwt-go`
**Command Line**
- `github.com/urfave/cli`
**Testing**
- `github.com/stretchr/testify`
## Test
Run below commands to detect data race.
```
go test -race ./...
```
Run below commands to see coverprofle.
```
go test -coverprofile=c.out ./... && gg tool cover -html=c.out
```
## Build
Run below commands to build executable binary.
```
go build -tags=jsoniter -ldflags="-s -w"
```