go-toolchain Questions

1

I am trying to update a project from go 1.21 to 1.22, and in the process, my build got the error go: go.mod requires go >= 1.22 (running go 1.21.10; GOTOOLCHAIN=local). So, I found some info on ...
Giglio asked 22/5 at 19:46

3

Solved

I am experiencing an issue where go run main.go produces the error: # command-line-arguments ./main.go:9: undefined: test However the commands go build && ./goruntest compile and run the p...
Crosspurpose asked 14/11, 2014 at 0:25

3

Solved

I am trying to implement dep in my project. This is all working well but it also adds a vendor directory. I now need to update my tooling to ignore this directory or my vendored packages will be mo...
Fulfil asked 28/11, 2017 at 10:45

2

Solved

I have a very simple Go project setup. At root directory I have go.mod file and main.go and a folder called main2. Inside main2 folder there is main2.go file. / |_ go.mod |_ main.go |_ main2 |_ ma...
Stiffen asked 28/4, 2022 at 14:58

3

Solved

I want to install packages from github to my $GOPATH, I have tried this: go get github.com:capotej/groupcache-db-experiment.git the repository is here.
Guajardo asked 18/5, 2015 at 4:32

1

Solved

I want to list the modules (and their versions) that are compiled in the final executable (and not other dependencies). I can do that with: $ go build -o a.out $ go version -m a.out But how can I ...
Untoward asked 15/10, 2020 at 12:21
1

© 2022 - 2024 — McMap. All rights reserved.