- π¦ Cross-Platform - Works on Windows, macOS, and Linux
- β‘ Fast Setup - One-command installation and execution
- ποΈ Go Modules - Uses
go modfor dependency management - π Auto-Generated Project - Creates
main.go,go.mod, and more - π Environment Variable Support - Reads from
.envif available - π³ Docker Support - Optional containerized execution
Ensure you have the following installed:
Run the setup script to initialize your project:
chmod +x setup.sh # Give execute permission (Linux/macOS)
./setup.sh # Run the scriptFor Windows (Git Bash), use:
bash setup.shGoForge/
βββ main.go # Entry point of the application
βββ go.mod # Go module dependencies
βββ .env # Environment variables (if applicable)
βββ Dockerfile # Docker containerization (Optional)
βββ setup.sh # Automated project setup script
βββ README.md # Documentation go run main.goor build and execute:
go build -o app main.go
./appdocker build -t GoForge .
docker run -p 8080:8080 GoForgeSure! Hereβs a shorter version of the steps to create your own Go module:
Create a package
./forge-module.shIf a .env file exists, it will be loaded automatically.
Example .env:
PORT=8080
APP_ENV=production
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Returns "Hello, Go App!" |
Modify main.go to fit your application needs. You can add routes, database connections, logging, and more!