Answer the question
In order to leave comments, you need to log in
How to include libraries through glide?
In the ~/go folder, I created the main.go script. There's the following import
import (
"encoding/json"
"database/sql"
"net/http"
_ "github.com/lib/pq"
)
package: github.com/Delgus/go-example
import:
- package: github.com/lib/pq
The dependencies are exported to the vendor/ directory where the go tools can find and use them.
Dependencies are exported to the vendor/ directory, where the go tools can find and use them.
Answer the question
In order to leave comments, you need to log in
Forget about glide and forget about 1.10, go1.12 has been around for a long time and the regular dependency manager built into it, which is better to use instead of any remnants of the past type of glide.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question