command
module
Version:
v0.0.0-...-7f10d31
Opens a new window with list of versions in this module.
Published: Apr 23, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-api-template

API server template created by Go.
Description
Usage
Run locally
% make run
Run unit test with coverage
% make test
Build docker image
% make docker-build
Run docker image
% make docker-run
Generate mock
% make mockgen
Install
-
Use this templateよりリポジトリを作成する。
-
必要なモジュールをダウンロード
% go mod download
- mockgenをインストール
% go install github.com/golang/mock/mockgen@v1.5.0
Contribution
- Fork it ( https://github.com/hapoon/go-api-template/fork)
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Rebase your local changes against the main branch (
git rebase -i
)
- Push to the branch (
git push origin my-new-feature
)
- Create new Pull Request
License
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
mock
Package mock_repository is a generated GoMock package.
|
Package mock_repository is a generated GoMock package. |
|
|
|
|
Click to show internal directories.
Click to hide internal directories.