Showing posts with the label go

[FIXED] Count number of rows in golang

Issue I want to display the number of rows from database using Go. How do I display number of rows?…

[FIXED] How to assert error type json.UnmarshalTypeError when caught by gin c.BindJSON

Issue I'm trying to catch binding errors with gin gonic and it's working fine for all valid…

[FIXED] json: cannot unmarshal object into Go value of type

Issue I can't decode the json code below ... any ideas why it doesn't work ? See also play.…

[FIXED] Presigned S3 upload url expires before expiration time

Issue I have a lambda to generate pre-signed upload URL. Here is the code I use to get URL: ur…

[FIXED] How to check if a string is all upper or lower case in Go?

Issue What is an easy way in Golang to check if all characters in a string are upper case or lower …

[FIXED] Peterson's algorithm and deadlock

Issue I am trying to experiment with some mutual execution algorithms. I have implemented the Peter…

[FIXED] Golang - Sending API POST Request - Not enough arguments error

Issue The following code attempts to send a POST API request with a payload that is in RequestDetai…