Categorygithub.com/alexjoedt/goinit
repositorypackage
1.1.0
Repository: https://github.com/alexjoedt/goinit.git
Documentation: pkg.go.dev

# README

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