$ go mod init markdwo-srv go: creating new go.mod: module markdwo-srv go: to add module requirements and sums: go mod tidy [alexlai@orangepi5 project]$ ls check go.mod [alexlai@orangepi5 project]$ less go.mod [alexlai@orangepi5 project]$ rm -rf go.mod [alexlai@orangepi5 project]$ mkdir makrdown-srv && cd $_ [alexlai@orangepi5 makrdown-srv]$ go mod init markdown-srv go: creating new go.mod: module markdown-srv [alexlai@orangepi5 makrdown-srv]$ go install github.com/go-martini/martini@latest go: finding module for package github.com/codegangsta/inject go: found github.com/codegangsta/inject in github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0 package github.com/go-martini/martini is not a main package [alexlai@orangepi5 makrdown-srv]$ ls go.mod [alexlai@orangepi5 makrdown-srv]$ less go.mod [alexlai@orangepi5 makrdown-srv]$ go install github.com/russross/blackfriday@latest package github.com/russross/blackfriday is not a main package [alexlai@orangepi5 makrdown-srv]$ less go.mod [alexlai@orangepi5 makrdown-srv]$ go get github.com/russross/blackfriday@latest go: added github.com/russross/blackfriday v1.6.0 [alexlai@orangepi5 makrdown-srv]$ less go.mod
$ go run main.go main.go:8:2: no required module provides package github.com/go-martini/martini; to add it: go get github.com/go-martini/martini [alexlai@orangepi5 makrdown-srv]$ go get github.com/go-martini/martini go: added github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0 go: added github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab