groom
Groom is a Golang package helper. It helps to develop,package and distribute golang packages. It does this by providing some missing features from the Go binary, quality of life new features.
Works very much like cargo
. It terms that groom
by itself is not useful without it's subcommands.
The first-party subcommands include
groom-create
Creates golang project according to a specified template.
You can make your own third-party subcommands. More information on that is here.
lib
This profile creates
lib.go
file for creating the library. Does not contain amain
function.go.mod
andgo.sum
created bygo mod init
. For managing dependencies.
example
|-- go.mod
`-- lib.go
0 directories, 2 files
cmd
This profiles is larger and more complex. This would be used to create command-line applications.
example/
|-- Makefile
|-- cmd
| `-- example
| `-- main.go
|-- go.mod
`-- pkg
`-- simple
`-- simple.go
4 directories, 4 files
simple
This profiles creates
simple.go
file for a example application.Makefile
for compiling, formatting and running the project.go.mod
andgo.sum
created bygo mod init
. For managing dependencies.
example/
|-- Makefile
|-- go.mod
`-- main.go
0 directories, 3 files