modulepackage
1.0.0-alpha
Repository: https://github.com/stonear/go-template.git
Documentation: pkg.go.dev
# README
My Personal Template for Go
Don't use it for production!
Clone the project
$ git clone https://github.com/stonear/go-template
$ cd go-template
REST Resource Naming Guide
Verb | URI | Action |
---|---|---|
GET | /entities | Index |
POST | /entities | Store |
GET | /entities/:id | Show |
PUT | /entities/:id | Update |
DELETE | /entities/:id | Destroy |
Commit Naming Rules
A typical git commit message will look like: <type>: <subject>
, "type" must be one of the following mentioned below:
build
: Build related changeschore
: A code change that external user won't see (eg: change to .gitignore file or .prettierrc file)feat
: A new featurefix
: A bug fixdocs
: Documentation related changesrefactor
: A code that neither fix bug nor adds a feature. (eg: You can use this when there is semantic changes like renaming a variable/ function name)perf
: A code that improves performancestyle
: A code that is related to stylingtest
: Adding new test or making changes to existing test
Testing
If you are using VSCode, I recommend you to use REST Client Extension for running apitest.http
.
To check if the database connected successfully, you can run the following command:
go test -timeout 30s -run ^TestDb$ github.com/stonear/go-template/database
Files with the suffix _test.go
are only compiled and run by the go test
tool.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author