#golangfacts search results
Behind every powerful technology is an interesting story. Golang was created at Google by legendary engineers who shaped C and UNIX—talk about strong foundations! 🧠⚙️ Stay curious. Keep learning. #GolangFacts #ProgrammingFun #TechCommunity #EurekaLearnings #DeveloperLife
TIL: the official standard Go compiler will not report "t declared but not used" and "a declared but not used" errors for the following code. #Golang #GolangFacts package main func main() { var t struct{x int} t.x = 1 var a [8]byte a[7] = 1 } github.com/golang/go/issu…
Whether or not you believe it, the function g is much more performant than the function f: #Golang #GolangFacts func f(x, y, z []byte) string { return string(x) + string(y) + string(z) } func g(x, y, z []byte) string { return (" " + string(x) + string(y) + string(z))[1:] }
A popular lie: the largest allowed stack size of a goroutine is 1 GB. It is 512 MiB actually (as of Go toolchain 1.17). #Golang #GolangFacts
Go is not C, so there is not an extreme fast way to merge slices: github.com/go101/go101/wi… #Golang #GolangFacts
There is not a perfect way to clone a slice in Go: github.com/go101/go101/wi… #Golang #GolangFacts
For the current official Go compiler implementation, values allocated on stack might change addresses. For example, package main var i interface{} func f() { type T int i = [1<<20]byte{} } func main(){ var x int println(&x) f() println(&x) } #Golang #GolangFacts
When using the official Go toolchain to build Go binaries, the binaries record (and so will leak) some of your personal information. So try to release you Go projects as source code, or build the distribution binaries in a build server without privacies. #Golang #GolangFacts
Up to now (Go 1.16), it is not a good idea to compare two "reflect.Value" values with the "reflect.DeepEqual" function, for undefined behavior. This might change later. github.com/golang/go/issu… #Golang #GolangFacts #GolangDetails
There is not a strong convention in naming Go standard APIs. There are at least 4 styles of function names for returning counts of items in Go: 1. flag.NArg 2. reflect.Value.NumField 3. go/types.Struct.NumFields 4. go/token.File.LineCount Aware of any more? #Golang #GolangFacts
RT @go100and1 How to specify the minimum Go toolchain version required by a package? github.com/go101/go101/wi… #Golang #GolangFacts #GolangTips #tech
How to specify the minimum Go toolchain version required by a package? github.com/go101/go101/wi… #Golang #GolangFacts #GolangTips
Some sadly, some existing code calls NumMethod() to judge whether or not an interface type is blank. This is incorrect. To avoid breaking these incorrect uses, the fix to reflect.Type/Value.NumMethod implementation will be reverted. github.com/golang/go/issu… #Golang #GolangFacts
Unlabelled for-loops will not prevent functions being inlined any more. github.com/golang/go/comm… The limit for labelled for-loops might be lifted in a future version other than v1.16. #Golang #GolangFacts
Now (Go Toolchain 1.15), with the standard Go compiler, functions containing for-loops will never be inlined: github.com/golang/go/issu… Now you can rewrite a small for-loop with goto to make such functions inlinable if you do care about the performance gain. #Golang #GolangFacts
Now (Go Toolchain 1.15), with the standard Go compiler, functions containing for-loops will never be inlined: github.com/golang/go/issu… Now you can rewrite a small for-loop with goto to make such functions inlinable if you do care about the performance gain. #Golang #GolangFacts
A bug in Go 1.15.3 you might need to be aware of: github.com/golang/go/issu… var x [1<<32]byte // Not all elements are initialized as 0 Please use make to create a slice instead: var x = make([]byte, 1<<32) #Golang #GolangFacts
github.com
cmd/compile: large variable not initialized to 0 · Issue #42054 · golang/go
What version of Go are you using (go version)? Initially spotted on playground (1.14.9), but also reproduces with 1.15.2 and: $ go version go version devel +3036b76df0 Sat Oct 10 16:06:07 2020 +000...
Bad news. It is held again now. github.com/golang/go/issu… #Golang #GolangDetails #GolangFacts
Up to now (Go 1.15), 64-bit integers on 32-bit OSes might be not always 8-byte aligned at run time, doing atomic operations for these integers might panic: github.com/go101/go101/wi… So be careful of this limit. The limit might be lifted soon: github.com/golang/go/issu… #Golang
github.com
proposal: cmd/compile: make 64-bit fields be 64-bit aligned on 32-bit systems, add //go:packed...
Summary: We propose to change the default layout of structs on 32-bit systems such that 64-bit fields will be 64-bit aligned. The layout of structs on 64-bit systems will not change. For compatibil...
One problem of Go channels is, programming with channels is so enjoyable that many gophers still would use them in the situations channels are not the most suitable solution for. #Golang #GolangFacts
Declared functions are immutable values. In fact, if Go supports constant values of any kinds of types, then the following declaration func Foo(params)(results) {...} can also be written as const Foo = func(params)(results) {...} #Golang #GolangFacts
Not many people know this, but the name of the programming language Go is actually short for "Fuck you and go implement it yourself" #golangfacts
Behind every powerful technology is an interesting story. Golang was created at Google by legendary engineers who shaped C and UNIX—talk about strong foundations! 🧠⚙️ Stay curious. Keep learning. #GolangFacts #ProgrammingFun #TechCommunity #EurekaLearnings #DeveloperLife
Something went wrong.
Something went wrong.
United States Trends
- 1. Jalen 72K posts
- 2. Eagles 115K posts
- 3. Herbert 32.9K posts
- 4. AJ Brown 9,976 posts
- 5. #BoltUp 4,545 posts
- 6. #WWERaw 48.6K posts
- 7. Saquon 11.4K posts
- 8. Tony Jefferson 2,995 posts
- 9. Patullo 6,971 posts
- 10. Cam Hart 1,327 posts
- 11. Sirianni 5,571 posts
- 12. #PHIvsLAC 3,782 posts
- 13. Tanner McKee 1,616 posts
- 14. LA Knight 10.3K posts
- 15. 4 INTs 3,439 posts
- 16. Greg Roman 1,430 posts
- 17. Piers 78.7K posts
- 18. Dotson 2,032 posts
- 19. Cameron Dicker 1,857 posts
- 20. Smitty 3,112 posts