Skip to content

A simple CLI tool to create a new Go project with a very basic directory structure

License

Notifications You must be signed in to change notification settings

alexjoedt/goinit

Repository files navigation

goinit

A simple CLI tool to create a new Go project with a very basic directory structure.

Contributions are welcome!

Project structure

.
├── .git
├── .gitignore
├── Makefile (optional)
├── README.md
├── Taskfile.yml (optional)
├── go.mod
└── main.go

Usage

$ go install github.com/alexjoedt/goinit
$ goinit my-new-project

Examples

Create project with a Makefile:

$ goinit -m my-new-project
# or
$ goinit --makefile my-new-project

Create project with a Taskfile

$ goinit -t my-new-project
# or
$ goinit --taskfile my-new-project

Sets the module name

$ goinit -gm my-new-project
# or
$ goinit --module github.com/alexjoedt/goinit my-new-project

Roadmap

  • Set the module name
  • Create project with a Makefile
  • Create project with a Taskfile
  • Create project with a Dockerfile

About

A simple CLI tool to create a new Go project with a very basic directory structure

Resources

License

Stars

Watchers

Forks

Packages

No packages published