templateToGo

command module
v0.0.0-...-e725833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: Unlicense Imports: 12 Imported by: 0

README

templateToGo

Including a standard MVC structure, cfg, logger.

The database is SQLite. ( will be configurable soon )

After clone

Replace module name in go.mod, then tidy.

linux bash

sed -i 's|github.com/blacksheepaul/templateToGo|your_module_name|g' go.mod
find . -name '*.go' -exec sed -i 's|github.com/blacksheepaul/templateToGo|your_module_name|g' {} \;

macOS

sed -i '' 's|github.com/blacksheepaul/templateToGo|your_module_name|g' go.mod
find . -name '*.go' -exec sed -i '' 's|github.com/blacksheepaul/templateToGo|your_module_name|g' {} \;

fish shell

sed -i -e 's|github.com/blacksheepaul/templateToGo|your_module_name|g' go.mod
find . -name '*.go' -exec sed -i -e 's|github.com/blacksheepaul/templateToGo|your_module_name|g' {} \;

then common

go mod tidy
git add **/*.go
git add go.mod go.sum

Migrate

for example:

create new migration

migrate -database "sqlite3://dev.db" create -seq -ext sql --dir model/migrations/ init_xxx_table

forward

migrate -database "sqlite3://dev.db" --path model/migrations/ up

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
core

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL