goinit

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 11 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL