NOTE: In the below examples we will be creating a module called basketball
.
Create the new directory for your module:
mkdir pkg/basketball
Move into your new directory:
cd pkg/basketball
Initialize your new module:
go mod init github.com/jgkawell/galactus/pkg/basketball
Write out all your code for your module according to business needs.
Write your unit tests along side your module code: How to write unit tests
Open your PR to main
following the PR guidelines here.