Skip to content

Instantly share code, notes, and snippets.

View tcarreira's full-sized avatar

Tiago Carreira tcarreira

View GitHub Profile
@thomaspoignant
thomaspoignant / Makefile
Last active June 24, 2024 22:54
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess