Skip to content
/ go-template Public template
generated from xurvan/empty-template

Basic template for Go project

License

Notifications You must be signed in to change notification settings

xurvan/go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Awesome Go project

  • This project adopts the Standard Go Project Layout for a clean and organized codebase.

  • We recommend following the guidelines outlined in Effective Go. Most formatting can be automatically handled using the go fmt tool.

  • For projects involving API design, we highly recommend referring to the Google API Design Guide for best practices.

Setup

We can install dependencies with:

go mod download

also, it's possible to use the make:

make install

and to run the code:

go cmd/main.go

Build

To simply build the project a simple make command is enough, and then you could find the binary file in the bin directory:

make

to see all the available commands, use help argument:

make help

About

Basic template for Go project

Resources

License

Stars

Watchers

Forks