goinit

command module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 12 Imported by: 0

README

goinit

Go codecov Go Version License Release

A simple CLI tool to quickly initialize Go projects with a clean directory structure.

Installation

go install github.com/alexjoedt/goinit@latest

Usage

# Create a basic Go project
goinit my-project

# With optional components
goinit -t -m -d my-webapp  # Add Taskfile, Makefile, and Dockerfile

# Interactive mode
goinit --interactive

Options

-t, --taskfile     Add Taskfile.yml for task automation
-m, --makefile     Add Makefile for build automation  
-d, --dockerfile   Add Dockerfile for containerization
    --module       Custom Go module name
-i, --interactive  Interactive mode with prompts
-v, --verbose      Show detailed output
-h, --help         Show help message

Project Structure

my-project/
├── .git/
├── .gitignore
├── go.mod
├── main.go
├── README.md
├── Makefile      (optional)
├── Taskfile.yml  (optional)
└── Dockerfile    (optional)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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