Project Template
Please add project description here.
Table of Contents
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
-
Gitinstallation (Dude, please...)- Run this command:
Or
apt-get -y install git
yum -y install git
- Run this command:
-
golang-ciis one of the IMPORTANT packages. Any developer who will maintain this project should install it. The installation command is as follows:go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2
-
Everytime the code is updated, please run following command:
golangci-lint run ./...
- Whenever you get RED colored logs, means that YOU ARE ABSOLUTELY need to fix that before finalize your
work (e.g. Make a PR)
- An example of an error log:
pkg/router/handlers/user.go:19:6: `xxx` is unused (deadcode) type xxx struct { ^
- An example of an error log:
- The only log that can be ignored is the
WARN, such as:WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
- Whenever you get RED colored logs, means that YOU ARE ABSOLUTELY need to fix that before finalize your
work (e.g. Make a PR)
Installation
- TO BE ADDED
Development
- Release 1.0 : Not Available Yet.
Usage
- TO BE ADDED
Configurations
- TO BE ADDED
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Looking to contribute to our code but need some help? There's a few ways to get information:
- Connect with me on Twitter
- Connect with me on Facebook
- Connect with me on LinkedIn
- Log an issue here on GitHub
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Muhammad Febrian Ardiansyah
- ADD MORE HERE ...
License
This project is licensed under the MIT License - see the LICENSE file for details
Misc
-
Golang CI Lint
- Installation command:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2 - Usage:
golangci-lint run <folderName>- Example 1:
golangci-lint run cmd/... - Example 2:
golangci-lint run pkg/...
- Example 1:
- Installation command:
Copyright © 2022 Private use in within the SatuMedis Development Team. All Rights Reserved.