cannot convert data (type interface {}) to type string: need type assertion
I am pretty new to go and I was playing with this notify package. At first I had code that looked like this: … Read more
I am pretty new to go and I was playing with this notify package. At first I had code that looked like this: … Read more
Is it possible to increment a minor version number automatically each time a Go app is compiled? I would like to set a … Read more
I’m new to Go and I’m experiencing a bit of cognitive dissonance between C-style stack-based programming where automatic variables live on the stack … Read more
Is it OK to leave a Go channel open forever (never close the channel) if I never check for its state? Will it … Read more
What is the Go way for extracting the last element of a slice? var slice []int slice = append(slice, 2) slice = append(slice, … Read more
Looking how actively golang packages grow and improve I wonder how the problem with package versions is solved? I see that one way … Read more
fmt.Println(“Enter position to delete::”) fmt.Scanln(&pos) new_arr := make([]int, (len(arr) – 1)) k := 0 for i := 0; i < (len(arr) – 1); … Read more
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more
The interactive environment is VERY helpful for a programmer. However, it seems Go does not provide it. Is my understanding correct? 12 Answers … Read more
I’ve been trying to figure out how to simply list the files and folders in a single directory in Go. I’ve found filepath.Walk, … Read more