when I execute below cmd: it tells me: "go: k8s.io/client-go@v12.0.0: invalid version: module contains a go.mod file, so module path must match maj ...
when I execute below cmd: it tells me: "go: k8s.io/client-go@v12.0.0: invalid version: module contains a go.mod file, so module path must match maj ...
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. ...
Is it possible to use custom linker script (.ldscript) as the Go executable generated from go build command is not supported on my target environment ...
When I run a test in Go, is there any way for me to get the list of files that the code imports, directly or indirectly? For example, this could help ...
I would like to get my dependencies from a private golang registry. By using GOPROXY. I would like to make sure all dependencies are coming from tha ...
Here is test file func demo() { name:=xxx() fmt.Println(name) } And my ast traversal code ast.Inspect(f, func(node ast.Node) bool { a ...
I use go/analysis to create my own static analysis tool. I still don't know how to find the def information from ast.Ident. Here is my testdata An ...
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: But ho ...
I have a script for TypeScript projects that makes sure my code compiles before I push it to the remote: The script works really well when I went t ...
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 th ...
I have a makefile that I want to run against both linux (debian/Ubuntu) and Windows/Cygwin. I need to do something slightly different according to th ...
I installed Go 1.6.2 on Windows but in my bin directory I now have only 3 files: I wonder if that's normal or my installation didn't go quite well ...
I want to install packages from github to my $GOPATH, I have tried this: the repository is here. ...
I am experiencing an issue where go run main.go produces the error: However the commands go build && ./goruntest compile and run the progra ...