Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 446 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 446 Bytes

Go tips

  • To save all dependencies at vendor folder, use the command below

    go mod vendor
    

    if you wanna keep it up to date, you have to use this command everytime you change the dependency.

  • Makefile

    The code below is basic template of makefile for Go

.DEFAULT_GOAL := build

fmt:
	go fmt ./...
.PHONY:fmt

lint: fmt
	golint ./...
.PHONY:lint

vet: fmt
	go vet ./...
.PHONY:vet

build: vet
	go build
.PHONY:build