W
W
wideShift2020-05-02 14:03:01
go
wideShift, 2020-05-02 14:03:01

Is it possible to put the package into the system?

They write something like

package main

    import (
        "github.com/vigo5190/goimports-example/a"
        foo "github.com/vigo5190/goimports-example/a"
        . "github.com/vigo5190/goimports-example/b"
        _ "github.com/vigo5190/goimports-example/c"
    )


Can I install and not use links? After all, if the link falls off, then it will not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2020-05-02
@pav5000

Yes, there is a go get command for this.
Run go get github.com/vigo5190/goimports-example/a and all package files are downloaded into the cache on your disk.
By the way, if you just build the project, all the dependencies will also be successfully downloaded and saved, so don't worry.
And you can also put a caching server, it's called Athens .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question