Skip to content

Instantly share code, notes, and snippets.

View Big-Vi's full-sized avatar
💥

Vignesh Murugan Big-Vi

💥
View GitHub Profile
@Big-Vi
Big-Vi / Makefile
Created July 6, 2023 02:37 — forked from alexedwards/Makefile
Makefile targets for working with sqlite
## db/connect: create to the local database
.PHONY: db/connect
db/connect:
sqlite3 db.sqlite
## db/migrations/new name=$1: create a new migration
.PHONY: db/migrations/new
db/migrations/new:
go run -tags 'sqlite3' github.com/golang-migrate/migrate/v4/cmd/migrate@latest create -seq -ext=.sql -dir=./resources/migrations ${name}
@Big-Vi
Big-Vi / Makefile
Created July 6, 2023 01:57 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help