sule-go

command module
v0.0.0-...-8d6c78c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 1 Imported by: 0

README

Golang service

Stacks

Development

using air for live reloading

$ air -- rest
# same as
$ go run main.go rest

Database

  • PostgreSQL
DB migration
# create migration files
$ ./migrate create -ext sql -dir db/migrations -seq init_table

# run migration files
$ ./migrate -database postgres://postgre:postgre@localhost:5432/postgre?sslmode=disable -path db/migrations up

# seeding
# create seed files in db/seeds/
# add to the registry in db/seeds/registry.go
# run seeding
$ go run main.go db seed <name of the registry name>

more on postgresql migration tutorial

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
db
db
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
pkg
db
env

Jump to

Keyboard shortcuts

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