About 11,500,000 results
Open links in new tab
  1. 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 …

  2. What is the difference between = and <- in golang

    Oct 25, 2015 · The = operator deals with variable assignment as in most languages. It expresses the idea of wanting to update the value that an identifier references. The <- operator …

  3. What is the difference between []string and ...string in golang?

    Oct 16, 2012 · @StephenWeinberg: Yes, my "nothing really" answer to the "what's the difference" quote is answering the question that was asked about the difference between the slice …

  4. How to pad a number with zeros when printing? - Stack Overflow

    Sep 3, 2014 · How can I print a number or make a string with zero padding to make it fixed width? For instance, if I have the number 12 and I want to make it 000012.

  5. 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...

  6. go - JWT validation with JWKS golang - Stack Overflow

    May 17, 2020 · JWT validation with JWKS golang Asked 5 years, 5 months ago Modified 2 years, 5 months ago Viewed 17k times

  7. How to do a https request with bad certificate? - Stack Overflow

    this is not a "bad certificate" it's a certificate with a different CN. InsecureSkipVerify is not a legitimate use here. You must set ServerName in the tls.Config to match what you are trying to …

  8. overloading - Optional Parameters in Go? - Stack Overflow

    I think not having optional parameters is a good decision. I've seen optional parameters abused pretty severely in C++ -- 40+ arguments. It's very error-prone to count through the arguments …

  9. "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...

  10. go - What's the meaning of interface {}? - Stack Overflow

    Apr 18, 2014 · 11 From the Golang Specifications: An interface type specifies a method set called its interface. A variable of interface type can store a value of any type with a method set that is …