Golang Package Manager: GO Module

import (
fmt
net/http
github.com/gorilla/mux
github.com/sirupsen/logrus
github.com/akashjain132/taxpayer/invoice
)
Go module
Go module

How to start Go Module

$ go mod init
module github.com/akashjain132/taxpayergo 1.14
$ echo $GOPATH/Users/akashjain/web/go
$ go run main.goHello world
module github.com/akashjain132/taxpayergo 1.14Require (
github.com/sirupsen/logrus v1.4.2
)
Syntax: go get module@<tag>go get github.com/sirupsen/logrus@v1.4.2
go get github.com/sirupsen/logrus@<branch name> // default: master branch
go get github.com/sirupsen/logrus@<Commit ID>

Love to write code and discuss technology | If you explain others is simple words it means you know it very well

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store