Top "Go" questions

Go is an open-source programming language.

What's the proper way to "go get" a private repository?

I'm searching for the way to get $ go get work with private repository, after many google try. The first try: $ …

git go
Checking the equality of two slices

How can I check if two slices are equal?

go go-reflect
How to use C++ in Go

In the new Go language, how do I call C++ code? In other words, how can I wrap my C++ …

c++ wrapper go
How to change int into int64?

Im trying to convert an integer into an integer64 in go but im having no luck. Anyone know an easy …

go
What is the `zero` value for time.Time in Go?

In an error condition, I tried to return nil, which throws the error: cannot use nil as type time.Time …

time go null
How to send a POST request in Go?

I am trying to make a POST request but I can't get it done. Nothing is received on the other …

go
How does Go update third-party packages?

Looking how actively golang packages grow and improve I wonder how the problem with package versions is solved? I see …

go
Constructors in Go

I have a struct and I would like it to be initialised with some sensible default values. Typically, the thing …

oop constructor go
golang "undefined" function declared in another file?

I'm trying to write a basic go program that calls a function on a different file, but a part of …

go undefined func
How to avoid annoying error "declared and not used"

I'm learning Go but I feel it is a bit annoying that when compiling, I should not leave any variable …

go