Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages