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.
- Generate boilerplate Go projects instantly.
- Support for optional database integration.
- Easy setup for WebSocket-enabled applications.
- Ability to specify a custom HTTP port.
- GitHub username integration for project initialization.
To install Gospin, ensure you have Cargo installed, and run the following command:
cargo install gospinTo 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 to8080if 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-projectGenerate a project with a custom HTTP port:
gospin -p 3000 my-projectGenerate a project with boilerplate code for database integration:
gospin -d my-projectGenerate a project with WebSocket support:
gospin -w my-projectInclude your GitHub username in the project metadata:
gospin -u myusername my-projectGenerate a project with database integration, WebSocket support, and a custom port:
gospin -d -w -p 5000 my-projectContributions 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.