command
module
Version:
v0.24.0
Opens a new window with list of versions in this module.
Published: Apr 6, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Snowflake
Yet another Go application generator.
Features:
- Opinionated with the best practices.
- Simplicity with batteries.
- Idiomatic. Every Gopher loves that word.
Installation
go install github.com/gitkumi/snowflake@latest
Quick Start
Here is how to generate an application.
snowflake new acme -d postgres
Flags
-d: Database type (sqlite3, postgres, or mysql)
-t: App type (api or web)
Check out the help commands for more.
Stack
Snowflake is built with these packages. Make sure to check their documentation.
Dev
Routing
Database
Templating
- templ (only for "web" app type)
Commands
make dev - Start the development environment with hot reload.
make test - Run tests.
make build - Build the project.
make run - Run the build.
make audit - Audit the project.
make tidy - Tidy the modules and format the project.
make db - Check database status.
make db.up - Run database migration.
make db.down - Roll back database migration by 1.
make db.create - Create database.
make db.destroy - Destroy database.
make db.reset - Destroy and create database.
make create <table_name> - Create an empty migration file.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
internal
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.