Skip to content

Instantly share code, notes, and snippets.

View Demznak's full-sized avatar

Dziamyan Stasev Demznak

View GitHub Profile
package main
import (
"encoding/json"
"testing"
)
type foo struct {
ID string `json:"_id"`
Index int `json:"index"`
@Demznak
Demznak / go_dependency_management
Last active May 4, 2021 18:58
go dependency management
Quick start
# Dependency Management
go get -d github.com/path/to/module # add or upgrade dep
go get -d github.com/dep/two/v2@v2.1.0 # use specific version
go get -d github.com/dep/commit@branch # use specific branch
go get -d -u ./... # upgrade all modules used in subdirs
go get -d github.com/dep/legacy@none # remove dep
# Useful commands