I'm trying to setup GoLand to use WSL 2 as in this guide: https://www.jetbrains.com/help/go/how-to-use-wsl-development-environment-in-product.html
I've installed Go in the Ubuntu distro following the linux instructions on the GoLang website, and go…
I have a method that I am testing, and everything seems fine. However, when I run the tests in GoLand, I can see in the output that the tests "PASS" but the test runner says "no tests were run".
Here's the sample method in calculator.go
package…
Hi I'm pretty new at Golang, after install it I would like to use the next package in my project:
https://github.com/gin-gonic/gin
After I created my project, I did the next command to install gingonic:
go get -u github.com/gin-gonic/gin
But the…
I have a simple web app which has cmd/ and pkg/ folders. As a convention, I'm importing packages in *.go files in cmd folder. Setting breakpoints work fine in any file in cmd but it doesn't work in packages.
Error message is:
could not find…
I have a Go project with a structure like this:
cmd
myapp
main.go
internal
app
myapp
impl.go
Now in main.go, I want to import impl.go. GoLand tells me that I should do it like this:
import (
…
Using Go v1.11.1 on OSX Mojava with GoLand 2018.3. When I run the following program in normal mode (not via debugger), it works fine. When I run it with the debugger, it hangs in the scanner.Scan() call.
package main
import (
"bufio"
…
I was wondering if there is a way to automatically download all the imports.
So let's assume I need to use github.com/gorilla/mux and several other packages in my code base. Should I manually go to my ~/go/src and run go get repo or is there a…
I have Jenkinsfile it's written in Groovy, but file name doesn't have approprite extension: .groovy. How can I tell IDEA to check groovy syntax of this file?
Update:
Also I interested in the same question about GoLand IDE
Is there a way to enable certain file watchers by default in all projects? It bugs me that I have to do this manually, but I've not found an option.
For example, I like to enable the goimports file watcher for every project in Goland.
I'm following the instructions in https://golang.org/doc/code.html#Library and trying to use Goland. I'm surprised though that I can't find a fast way to install the library I'm writing. According to the tutorial, you should use install to install…
When I debug a go program in GoLand, I can't see the value of global variable. Can anyone tell me why and how to fix it?
Here is an example:
I set a breakpoint in the last line of main function. But as shown in the picture, we can only get the value…
In GoLand, how do I set up a Run/Debug Configuration to only build a project go build and not run it go run *.go.
The Getting Started guide says The Go Application type is equal to go build command - but it actually runs my binary.
The Features page…
I am trying to run my go script called release.go in the Goglang built in terminal and it gives me the following output
$ go run release.go
# command-line-arguments
flag provided but not defined: -goversion
usage: compile [options] file.go...
-% …
Hi all. I'm very new with Go and Gogland. I have a project
I choose "Run kind" as Package - to run not only main file but a project. Why it cannot find main package??
How to import util.myprinter package to main.go to use it??
Please, help me
Im using Gogland (IDE from JetBrains. Version 1.0 Preview/EAP Feb, 10 2017) to create a Beego web app.
I can run it from command line with:
bee run
and everything works.
However if I run it from the IDE with the following configuration
when I…