Golang pgconn.errTimeout context canceled

Suppose you just received the following error: during database operation attempts in your Go app. Obviously, the first thing you need to check is your query, its performance, and timeout values. You might miss some index creations, etc. If everything is ok with your query and it’s working well and constantly faster than that timeout […]

READ MORE

Golang struct reflection

Suppose we want to know all possible information about the fields of the Go struct. We can get all this stuff using reflection. In this article you’ll find the answers to these questions: You can use this piece of code to get this information from the structure using reflection and print it in tabular form. […]

READ MORE