About 11,400,000 results
Open links in new tab
  1. Difference between := and = operators in Go - Stack Overflow

    Jul 26, 2013 · What is the difference between the = and := operators, and what are the use cases for them? They both seem to be for an assignment?

  2. In golang, what is the difference between & and - Stack Overflow

    Oct 20, 2015 · In golang, what is the difference between & and * Asked 9 years, 10 months ago Modified 2 years, 1 month ago Viewed 34k times

  3. go - What is the meaning of '*' and '&'? - Stack Overflow

    Golang does not allow pointer-arithmetic (arrays do not decay to pointers) and insecure casting. All downcasts will be checked using the runtime-type of the variable and either panic or return …

  4. Go << and >> operators - Stack Overflow

    Apr 27, 2011 · Could someone please explain to me the usage of &lt;&lt; and &gt;&gt; in Go? I guess it is similar to some other languages.

  5. How to uninstall Go? - Stack Overflow

    Aug 14, 2021 · 7 Use this command to uninstall Golang for Ubuntu. This will remove just the golang-go package itself. sudo apt-get remove golang-go Uninstall golang-go and its …

  6. How to search for an element in a golang slice - Stack Overflow

    Jul 29, 2016 · How to search for an element in a golang slice Asked 9 years, 1 month ago Modified 1 month ago Viewed 366k times

  7. Set an int pointer to an int value in Go - Stack Overflow

    Jun 13, 2018 · You have a pointer variable which after declaration will be nil. If you want to set the pointed value, it must point to something. Attempting to dereference a nil pointer is a runtime …

  8. "undefined" function declared in another file? - Stack Overflow

    I'm trying to write a basic go program that calls a function on a different file, but a part of the same package. However, it returns: undefined: NewEmployee Here is the source code: main.go: pa...

  9. How to find the type of an object in Go? - Stack Overflow

    Nov 24, 2013 · How do I find the type of an object in Go? In Python, I just use typeof to fetch the type of object. Similarly in Go, is there a way to implement the same ? Here is the container …

  10. How to compare if two structs, slices or maps are equal?

    I want to check if two structs, slices and maps are equal. But I'm running into problems with the following code. See my comments at the relevant lines. package main import ( "fmt" "refl...