go-api-template

command module
v0.0.0-...-7f10d31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 3 Imported by: 0

README

go-api-template

GitHub go.mod Go version CircleCI GitHub

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

  1. Use this templateよりリポジトリを作成する。

  2. 必要なモジュールをダウンロード

% go mod download
  1. mockgenをインストール
% go install github.com/golang/mock/mockgen@v1.5.0

Contribution

  1. Fork it ( https://github.com/hapoon/go-api-template/fork)
  2. Create your feature branch ( git checkout -b my-new-feature )
  3. Commit your changes ( git commit -am 'Add some feature' )
  4. Rebase your local changes against the main branch ( git rebase -i )
  5. Push to the branch ( git push origin my-new-feature )
  6. Create new Pull Request

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mock
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL