A simple golang library, now available in your favourite terminal. Start new golang project from structured workflows of your choice.
- Easy to set up and install
- Have the entire Go structure already established
- Setting up a Go HTTP server (or Fasthttp with Fiber)
- Integrate with a popular frameworks
- Focus on the actual code of your application
go install github.com/mahibulhaque/gofast@latestThis installs a go binary that will automatically bind to your $GOPATH
if you’re using Zsh, you’ll need to add it manually to
~/.zshrc.
GOPATH=$HOME/go PATH=$PATH:/usr/local/go/bin:$GOPATH/bindon't forget to update
source ~/.zshrcThen in a new terminal run:
gofast createYou can also use the provided flags to set up a project without interacting with the UI.
gofast create --name myproject --framework chi --driver postgres --git skipSee gofast create -h for all the options and shorthands cli flags.
Gofast offers enhanced database support, allowing you to choose your preferred database driver during project setup. Use the --driver or -d flag to specify the database driver you want to integrate into your project.
Choose from a variety of supported database drivers:
The tool is focused on being as minimalistic as possible. That being said, we wanted to offer the ability to add other features people may want without bloating the overall experience.
You can now use the --advanced flag when running the create command to get access to the following features. This is a multi-option prompt; one or more features can be used at the same time:
- CI/CD workflow setup using Github Actions
- Websocket sets up a websocket endpoint
- Docker configuration for go project
- React frontend written in TypeScript, including integration with Tanstack Router and Tanstack Query
Here's an example of setting up a project with a specific database driver:
gofast create --name myproject --framework chi --driver postgres --git commit