Hi Does generating a new instance from struct increase memory consumption? Or does it have memory cost? I need to generate 50 new instance per seconds, each instance passes t...
Hi How do you think I can print a custom (and pre-defined) error message? Consider the last error defined in one of my packages. The last error will only be returned when pag...
Hi Why this code works? As we know, readers always return io.EOF when the reader has no more data to transfer into stream. count, err := a.src.Read(p) // p is populated with s...
I've a question about project structure. Consider i've another struct (for example Config{}) in my pipe package. Should i create another file inside pipe.go for this struct an...
Why this design patterns have faild status? Does it means that we don't have (or we don't need) any bridge design pattern in go?
What's the best way to build a queue of struct in a go program? Is there any Third-Party library to do that?
So is there any good resource to read more about go design patterns? (or design patterns example in go)
What's the difference between io.TeeReader and io.Reader ? 🤔