Some common go functionality strapped into a library.
go mod init example.com/my-basiclib-demo
Note that you need to include the v in the version tag.
Note that you need to replace X
with the desired target.
go get github.com/mrlunchbox777/[email protected]
package main
import (
"fmt"
"github.com/mrlunchbox777/basiclib"
)
func main() {
fmt.Println(basiclib.Add(2,3))
fmt.Println(basiclib.Subtract(2,3))
}
This should provide sufficient testing.
go test
X should be replaced by the desired target.
git tag vX.X.X
git push origin --tags