| Crates.io | gospin |
| lib.rs | gospin |
| version | 0.1.8 |
| created_at | 2024-01-06 18:22:58.077951+00 |
| updated_at | 2025-05-16 18:33:00.741922+00 |
| description | A cli tool to create a boilerplate GO project |
| homepage | https://github.com/Francesco99975/gospin |
| repository | https://github.com/Francesco99975/gospin |
| max_upload_size | |
| id | 1091118 |
| size | 99,650 |
Gospin is a simple command-line tool designed to help developers kickstart a new Go project instantly. With Gospin, you can quickly generate boilerplate code tailored to your project's needs, saving you time and effort. Whether you're building a REST API, a project with database integration, or a WebSocket-based application, Gospin has got you covered.
To install Gospin, ensure you have Cargo installed, and run the following command:
cargo install gospin
To create a new Go project using Gospin, use the following command:
gospin [OPTIONS] [PROJECT]
[PROJECT]: The name of the Go project to be generated. This is optional; if not provided, Gospin will use a default name.-u, --username <GHU>: Specify your GitHub username. This will include your GitHub username in the project's metadata.-p, --port <PORT>: Set the HTTP port for the project. Defaults to 8080 if not specified.-d, --database: Include boilerplate code for database integration.-w, --websockets: Include boilerplate code for WebSocket functionality.-h, --help: Print the help message and exit.-V, --version: Print the version of Gospin and exit.Generate a basic Go project:
gospin my-project
Generate a project with a custom HTTP port:
gospin -p 3000 my-project
Generate a project with boilerplate code for database integration:
gospin -d my-project
Generate a project with WebSocket support:
gospin -w my-project
Include your GitHub username in the project metadata:
gospin -u myusername my-project
Generate a project with database integration, WebSocket support, and a custom port:
gospin -d -w -p 5000 my-project
Contributions are welcome! Feel free to submit issues or pull requests to improve Gospin.
Gospin is open-source and available under the BSD 3-Clause License.