Tech Stock logo Tech Stock

밑과 같이 run이나 build를 했을때

go run
go build

이런식으로 나오면

cannot find package "github.com/gorilla/websocket"

go get으로 받아준다

go get github.com/gorilla/websocket

go의 get에 대해서 조금더 알아보자.

go get이란?
본인이 환경변수GOPATH로 지정한곳에 소스코드나 컴파일 후의 모듈 등을 다운로드 받는다.

go help get을 쳐보면 이렇게 나온다

$ go help get
usage: go get [-d] [-f] [-t] [-u] [-v] [-fix] [-insecure] [build flags] [packages]

Get downloads the packages named by the import paths, along with their
dependencies. It then installs the named packages, like 'go install'.

The -d flag instructs get to stop after downloading the packages; that is,
it instructs get not to install the packages.

The -f flag, valid only when -u is set, forces get -u not to verify that
each package has been checked out from the source control repository
implied by its import path. This can be useful if the source is a local fork
of the original.

The -fix flag instructs get to run the fix tool on the downloaded packages
before resolving dependencies or building the code.

The -insecure flag permits fetching from repositories and resolving
custom domains using insecure schemes such as HTTP. Use with caution.

The -t flag instructs get to also download the packages required to build
the tests for the specified packages.

The -u flag instructs get to use the network to update the named packages
and their dependencies. By default, get uses the network to check out
missing packages but does not use it to look for updates to existing packages.

The -v flag enables verbose progress and debug output.

Get also accepts build flags to control the installation. See 'go help build'.

When checking out a new package, get creates the target directory
GOPATH/src/<import-path>. If the GOPATH contains multiple entries,
get uses the first one. For more details see: 'go help gopath'.

When checking out or updating a package, get looks for a branch or tag
that matches the locally installed version of Go. The most important
rule is that if the local installation is running version "go1", get
searches for a branch or tag named "go1". If no such version exists
it retrieves the default branch of the package.

When go get checks out or updates a Git repository,
it also updates any git submodules referenced by the repository.

Get never checks out or updates code stored in vendor directories.

For more about specifying packages, see 'go help packages'.

For more about how 'go get' finds source code to
download, see 'go help importpath'.

This text describes the behavior of get when using GOPATH
to manage source code and dependencies.
If instead the go command is running in module-aware mode,
the details of get's flags and effects change, as does 'go help get'.
See 'go help modules' and 'go help module-get'.

See also: go build, go install, go clean.

필요에 따라서 적절하게 옵션을 줘서 사용하도록 하자
많이 쓰는 옵션

  • -d 패키지를 설치하지 않고 다운로드만 한다.
  • -v 진행상황을 본다.
  • -u 패키지를 업뎃 한다.

-v 옵션을 주고 Hugo 를 받아보자

$ go get -v github.com/spf13/hugo
github.com/spf13/hugo (download)
github.com/gohugoio/hugo (download)
github.com/alecthomas/chroma (download)
github.com/dlclark/regexp2 (download)
github.com/bep/debounce (download)
github.com/fsnotify/fsnotify (download)
github.com/mattn/go-isatty (download)
Fetching https://golang.org/x/text/runes?go-get=1
Parsing meta tags from https://golang.org/x/text/runes?go-get=1 (status code 200)
get "golang.org/x/text/runes": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/runes?go-get=1
get "golang.org/x/text/runes": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
golang.org/x/text (download)
Fetching https://golang.org/x/text/transform?go-get=1
Parsing meta tags from https://golang.org/x/text/transform?go-get=1 (status code 200)
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/norm?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/norm?go-get=1 (status code 200)
get "golang.org/x/text/unicode/norm": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/norm?go-get=1
get "golang.org/x/text/unicode/norm": verifying non-authoritative meta tag
github.com/pkg/errors (download)
github.com/spf13/afero (download)
github.com/gobwas/glob (download)
github.com/spf13/cast (download)
github.com/mitchellh/mapstructure (download)
github.com/niklasfasching/go-org (download)
github.com/spf13/jwalterweatherman (download)
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/spf13/viper (download)
github.com/hashicorp/hcl (download)
github.com/magiconair/properties (download)
github.com/pelletier/go-toml (download)
github.com/spf13/pflag (download)
github.com/subosito/gotenv (download)
Fetching https://gopkg.in/ini.v1?go-get=1
Parsing meta tags from https://gopkg.in/ini.v1?go-get=1 (status code 200)
get "gopkg.in/ini.v1": found meta tag get.metaImport{Prefix:"gopkg.in/ini.v1", VCS:"git", RepoRoot:"https://gopkg.in/ini.v1"} at https://gopkg.in/ini.v1?go-get=1
gopkg.in/ini.v1 (download)
github.com/PuerkitoBio/purell (download)
github.com/PuerkitoBio/urlesc (download)
github.com/danwakefield/fnmatch (download)
github.com/armon/go-radix (download)
github.com/rogpeppe/go-internal (download)
github.com/yuin/goldmark-highlighting (download)
github.com/russross/blackfriday (download)
github.com/miekg/mmark (download)
github.com/jdkato/prose (download)
package github.com/jdkato/prose/transform: cannot find package "github.com/jdkato/prose/transform" in any of:
        c:\Go\src\github.com\jdkato\prose\transform (from $GOROOT)
        C:\go_project\src\github.com\jdkato\prose\transform (from $GOPATH)
github.com/kyokomi/emoji (download)
github.com/mitchellh/hashstructure (download)
github.com/olekukonko/tablewriter (download)
github.com/mattn/go-runewidth (download)
github.com/bep/gitmap (download)
github.com/BurntSushi/locker (download)
github.com/disintegration/gift (download)
github.com/bep/tmc (download)
github.com/rwcarlsen/goexif (download)
github.com/muesli/smartcrop (download)
Fetching https://golang.org/x/image/draw?go-get=1
Parsing meta tags from https://golang.org/x/image/draw?go-get=1 (status code 200)
get "golang.org/x/image/draw": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/draw?go-get=1
get "golang.org/x/image/draw": verifying non-authoritative meta tag
Fetching https://golang.org/x/image?go-get=1
Parsing meta tags from https://golang.org/x/image?go-get=1 (status code 200)
golang.org/x/image (download)
Fetching https://golang.org/x/image/bmp?go-get=1
Parsing meta tags from https://golang.org/x/image/bmp?go-get=1 (status code 200)
get "golang.org/x/image/bmp": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/bmp?go-get=1
get "golang.org/x/image/bmp": verifying non-authoritative meta tag
Fetching https://golang.org/x/image/tiff?go-get=1
Parsing meta tags from https://golang.org/x/image/tiff?go-get=1 (status code 200)
get "golang.org/x/image/tiff": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/tiff?go-get=1
get "golang.org/x/image/tiff": verifying non-authoritative meta tag
Fetching https://golang.org/x/image/webp?go-get=1
Parsing meta tags from https://golang.org/x/image/webp?go-get=1 (status code 200)
get "golang.org/x/image/webp": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/webp?go-get=1
get "golang.org/x/image/webp": verifying non-authoritative meta tag
github.com/nicksnyder/go-i18n (download)
github.com/tdewolff/minify (download)
github.com/tdewolff/parse (download)
github.com/sanity-io/litter (download)
github.com/markbates/inflect (download)
github.com/gobuffalo/envy (download)
github.com/joho/godotenv (download)
github.com/evanw/esbuild (download)
github.com/getkin/kin-openapi (download)
github.com/ghodss/yaml (download)
github.com/aws/aws-sdk-go (download)
github.com/jmespath/go-jmespath (download)
github.com/dustin/go-humanize (download)
Fetching https://gocloud.dev/blob?go-get=1
Parsing meta tags from https://gocloud.dev/blob?go-get=1 (status code 200)
get "gocloud.dev/blob": found meta tag get.metaImport{Prefix:"gocloud.dev", VCS:"git", RepoRoot:"https://github.com/google/go-cloud"} at https://gocloud.dev/blob?go-get=1
get "gocloud.dev/blob": verifying non-authoritative meta tag
Fetching https://gocloud.dev?go-get=1
Parsing meta tags from https://gocloud.dev?go-get=1 (status code 200)
gocloud.dev (download)
Fetching https://go.opencensus.io/stats?go-get=1
Parsing meta tags from https://go.opencensus.io/stats?go-get=1 (status code 200)
get "go.opencensus.io/stats": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io/stats?go-get=1
get "go.opencensus.io/stats": verifying non-authoritative meta tag
Fetching https://go.opencensus.io?go-get=1
Parsing meta tags from https://go.opencensus.io?go-get=1 (status code 200)
go.opencensus.io (download)
Fetching https://go.opencensus.io/tag?go-get=1
Parsing meta tags from https://go.opencensus.io/tag?go-get=1 (status code 200)
get "go.opencensus.io/tag": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io/tag?go-get=1
get "go.opencensus.io/tag": verifying non-authoritative meta tag
Fetching https://go.opencensus.io/stats/view?go-get=1
Parsing meta tags from https://go.opencensus.io/stats/view?go-get=1 (status code 200)
get "go.opencensus.io/stats/view": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io/stats/view?go-get=1
get "go.opencensus.io/stats/view": verifying non-authoritative meta tag
github.com/googleapis/gax-go (download)
Fetching https://google.golang.org/grpc?go-get=1
Parsing meta tags from https://google.golang.org/grpc?go-get=1 (status code 200)
get "google.golang.org/grpc": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc?go-get=1
google.golang.org/grpc (download)
github.com/golang/protobuf (download)
Fetching https://google.golang.org/protobuf/encoding/prototext?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/encoding/prototext?go-get=1 (status code 200)
get "google.golang.org/protobuf/encoding/prototext": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/encoding/prototext?go-get=1
get "google.golang.org/protobuf/encoding/prototext": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf?go-get=1
Parsing meta tags from https://google.golang.org/protobuf?go-get=1 (status code 200)
google.golang.org/protobuf (download)
Fetching https://google.golang.org/protobuf/encoding/protowire?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/encoding/protowire?go-get=1 (status code 200)
get "google.golang.org/protobuf/encoding/protowire": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/encoding/protowire?go-get=1
get "google.golang.org/protobuf/encoding/protowire": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/reflect/protoreflect?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/reflect/protoreflect?go-get=1 (status code 200)
get "google.golang.org/protobuf/reflect/protoreflect": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/reflect/protoreflect?go-get=1
get "google.golang.org/protobuf/reflect/protoreflect": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/proto?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/proto?go-get=1 (status code 200)
get "google.golang.org/protobuf/proto": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/proto?go-get=1
get "google.golang.org/protobuf/proto": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/reflect/protoregistry?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/reflect/protoregistry?go-get=1 (status code 200)
get "google.golang.org/protobuf/reflect/protoregistry": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/reflect/protoregistry?go-get=1
get "google.golang.org/protobuf/reflect/protoregistry": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/runtime/protoiface?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/runtime/protoiface?go-get=1 (status code 200)
get "google.golang.org/protobuf/runtime/protoiface": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/runtime/protoiface?go-get=1
get "google.golang.org/protobuf/runtime/protoiface": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/runtime/protoimpl?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/runtime/protoimpl?go-get=1 (status code 200)
get "google.golang.org/protobuf/runtime/protoimpl": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/runtime/protoimpl?go-get=1
get "google.golang.org/protobuf/runtime/protoimpl": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/codes?go-get=1
Parsing meta tags from https://google.golang.org/grpc/codes?go-get=1 (status code 200)
get "google.golang.org/grpc/codes": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/codes?go-get=1
get "google.golang.org/grpc/codes": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc?go-get=1
Parsing meta tags from https://google.golang.org/grpc?go-get=1 (status code 200)
Fetching https://google.golang.org/grpc/status?go-get=1
Parsing meta tags from https://google.golang.org/grpc/status?go-get=1 (status code 200)
get "google.golang.org/grpc/status": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/status?go-get=1
get "google.golang.org/grpc/status": verifying non-authoritative meta tag
Fetching https://google.golang.org/genproto/googleapis/rpc/status?go-get=1
Parsing meta tags from https://google.golang.org/genproto/googleapis/rpc/status?go-get=1 (status code 200)
get "google.golang.org/genproto/googleapis/rpc/status": found meta tag get.metaImport{Prefix:"google.golang.org/genproto", VCS:"git", RepoRoot:"https://github.com/googleapis/go-genproto"} at https://google.golang.org/genproto/googleapis/rpc/status?go-get=1
get "google.golang.org/genproto/googleapis/rpc/status": verifying non-authoritative meta tag
Fetching https://google.golang.org/genproto?go-get=1
Parsing meta tags from https://google.golang.org/genproto?go-get=1 (status code 200)
google.golang.org/genproto (download)
Fetching https://go.opencensus.io/plugin/ocgrpc?go-get=1
Parsing meta tags from https://go.opencensus.io/plugin/ocgrpc?go-get=1 (status code 200)
get "go.opencensus.io/plugin/ocgrpc": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io/plugin/ocgrpc?go-get=1
get "go.opencensus.io/plugin/ocgrpc": verifying non-authoritative meta tag
Fetching https://go.opencensus.io/trace?go-get=1
Parsing meta tags from https://go.opencensus.io/trace?go-get=1 (status code 200)
get "go.opencensus.io/trace": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io/trace?go-get=1
get "go.opencensus.io/trace": verifying non-authoritative meta tag
github.com/golang/groupcache (download)
Fetching https://gocloud.dev/blob/azureblob?go-get=1
Parsing meta tags from https://gocloud.dev/blob/azureblob?go-get=1 (status code 200)
get "gocloud.dev/blob/azureblob": found meta tag get.metaImport{Prefix:"gocloud.dev", VCS:"git", RepoRoot:"https://github.com/google/go-cloud"} at https://gocloud.dev/blob/azureblob?go-get=1
get "gocloud.dev/blob/azureblob": verifying non-authoritative meta tag
github.com/Azure/azure-pipeline-go (download)
github.com/mattn/go-ieproxy (download)
Fetching https://golang.org/x/sys/windows?go-get=1
Parsing meta tags from https://golang.org/x/sys/windows?go-get=1 (status code 200)
get "golang.org/x/sys/windows": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/windows?go-get=1
get "golang.org/x/sys/windows": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
Fetching https://golang.org/x/sys/windows/registry?go-get=1
Parsing meta tags from https://golang.org/x/sys/windows/registry?go-get=1 (status code 200)
get "golang.org/x/sys/windows/registry": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/windows/registry?go-get=1
get "golang.org/x/sys/windows/registry": verifying non-authoritative meta tag
github.com/Azure/azure-storage-blob-go (download)
github.com/google/uuid (download)
github.com/google/wire (download)
Fetching https://google.golang.org/api/option?go-get=1
Parsing meta tags from https://google.golang.org/api/option?go-get=1 (status code 200)
get "google.golang.org/api/option": found meta tag get.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://github.com/googleapis/google-api-go-client"} at https://google.golang.org/api/option?go-get=1
get "google.golang.org/api/option": verifying non-authoritative meta tag
Fetching https://google.golang.org/api?go-get=1
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
google.golang.org/api (download)
Fetching https://golang.org/x/oauth2?go-get=1
Parsing meta tags from https://golang.org/x/oauth2?go-get=1 (status code 200)
get "golang.org/x/oauth2": found meta tag get.metaImport{Prefix:"golang.org/x/oauth2", VCS:"git", RepoRoot:"https://go.googlesource.com/oauth2"} at https://golang.org/x/oauth2?go-get=1
golang.org/x/oauth2 (download)
Fetching https://golang.org/x/oauth2/google?go-get=1
Parsing meta tags from https://golang.org/x/oauth2/google?go-get=1 (status code 200)
get "golang.org/x/oauth2/google": found meta tag get.metaImport{Prefix:"golang.org/x/oauth2", VCS:"git", RepoRoot:"https://go.googlesource.com/oauth2"} at https://golang.org/x/oauth2/google?go-get=1
get "golang.org/x/oauth2/google": verifying non-authoritative meta tag
Fetching https://golang.org/x/oauth2?go-get=1
Parsing meta tags from https://golang.org/x/oauth2?go-get=1 (status code 200)
Fetching https://cloud.google.com/go/compute/metadata?go-get=1
Parsing meta tags from https://cloud.google.com/go/compute/metadata?go-get=1 (status code 200)
get "cloud.google.com/go/compute/metadata": found meta tag get.metaImport{Prefix:"cloud.google.com/go", VCS:"git", RepoRoot:"https://github.com/googleapis/google-cloud-go"} at https://cloud.google.com/go/compute/metadata?go-get=1
get "cloud.google.com/go/compute/metadata": verifying non-authoritative meta tag
Fetching https://cloud.google.com/go?go-get=1
Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200)
cloud.google.com/go (download)
Fetching https://gocloud.dev/blob/fileblob?go-get=1
Parsing meta tags from https://gocloud.dev/blob/fileblob?go-get=1 (status code 200)
get "gocloud.dev/blob/fileblob": found meta tag get.metaImport{Prefix:"gocloud.dev", VCS:"git", RepoRoot:"https://github.com/google/go-cloud"} at https://gocloud.dev/blob/fileblob?go-get=1
get "gocloud.dev/blob/fileblob": verifying non-authoritative meta tag
Fetching https://gocloud.dev/blob/gcsblob?go-get=1
Parsing meta tags from https://gocloud.dev/blob/gcsblob?go-get=1 (status code 200)
get "gocloud.dev/blob/gcsblob": found meta tag get.metaImport{Prefix:"gocloud.dev", VCS:"git", RepoRoot:"https://github.com/google/go-cloud"} at https://gocloud.dev/blob/gcsblob?go-get=1
get "gocloud.dev/blob/gcsblob": verifying non-authoritative meta tag
Fetching https://gocloud.dev/blob/s3blob?go-get=1
Parsing meta tags from https://gocloud.dev/blob/s3blob?go-get=1 (status code 200)
get "gocloud.dev/blob/s3blob": found meta tag get.metaImport{Prefix:"gocloud.dev", VCS:"git", RepoRoot:"https://github.com/google/go-cloud"} at https://gocloud.dev/blob/s3blob?go-get=1
get "gocloud.dev/blob/s3blob": verifying non-authoritative meta tag
Fetching https://google.golang.org/api/compute/v1?go-get=1
Parsing meta tags from https://google.golang.org/api/compute/v1?go-get=1 (status code 200)
get "google.golang.org/api/compute/v1": found meta tag get.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://github.com/googleapis/google-api-go-client"} at https://google.golang.org/api/compute/v1?go-get=1
get "google.golang.org/api/compute/v1": verifying non-authoritative meta tag
github.com/spf13/cobra (download)
github.com/inconshreveable/mousetrap (download)
github.com/cpuguy83/go-md2man (download)
github.com/spf13/fsync (download)

이런식으로 쭈루룩 다운로드가 된다.

어디에 저장되었을까?

본인이 GOPATH의 환경변수로 지정한곳을 보자
그곳의 src쪽을 보면 github.com이 있고 그 밑에 gohugoio가 있다
(나는 참고로 go_project를 GOPATH로 지정했다.)

/go_project/src/github.com/gohugoio/hugo

만약 이 패키지를 업데이트 하고 싶으면 이렇게 친다

go get -u -v github.com/spf13/hugo