katallaxie / template-go

A tiny template to start Go projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

šŸ„³ Template Go

This is the standard template for Go projects of @katallaxie.

This is a GitHub Template Repository. You can use the green button to create a new repository based on this template. Read more about GitHub Template Repositories.

Get Started

make setup MODULE_NAME=github.com/username/repo

Features

You can sh scripts/postCreateCommand.sh if you are not running in a remote container or on Codespaces.

Usage

This template supports Makefile to run tooling.

make is choosen as it is available on most systems.

# show `help`
make help

Setup

Setup the project.

make setup MODULE_NAME=github.com/username/repo

Other available targets are

  • build
  • fmt
  • lint
  • vet
  • generate
  • clean

The convention is to use make to run the build.

Happy coding!

About

A tiny template to start Go projects


Languages

Language:Go 52.4%Language:Makefile 24.6%Language:Dockerfile 12.6%Language:Shell 10.4%