Reddit » The Go Programming Language
90 FOLLOWERS
A subreddit to ask questions and post articles about the Go programming language and related tools, events etc.
Reddit » The Go Programming Language
1d ago
Working on Go, using Vscode with Thunderclient, PGAdmin4, trying to send a request to POST: http://localhost:8080/v1/users. Getting a password authentication error response. While my password is absolutely correct: {
"error": "couldn't create user: pq: password authentication failed for user""
}
submitted by /u/backslash2
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
Hi all,
I'm relatively new in Golang and trying to build a package that helps me to authorize a user in a company, department.
I would really appreciate for someone help me review the code. At the moment, the package doesn't have any tests. I've just added the examples.
Repository: https://github.com/oarkflow/permission
submitted by /u/sujitbaniya
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
submitted by /u/zuzuleinen
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
submitted by /u/vsupalov
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
We have multiple services written in go, with some of them having active go routines running in background. The go routines can initiate connection with db or redis, based on the used case. While looking at the memory and cpu usage we found out multiple entires of all of our go programs. In the picture attached, each box represents a go service having multiple processes running in idle state. Should we be worried about this behaviour?
submitted by /u/FancyResident3650
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
During my PhD (USA), I started with data analysis in Python and read some software architecture books, then wanted to see how I could control my experiments with software and not just analyze them with code. My lab didn’t have any kind of automated equipment, so I figured out how to reverse engineer the serial protocols for old lab instruments, and also made some STM32 things that communicate with RS485.
I needed to control the system and make it rapidly reconfigurable and scalable for my research. I considered multiple existing things and didn’t like them for one reason or another. I ultimat ..read more
Reddit » The Go Programming Language
1d ago
I started working on some code to display the results of dynamic SQL queries in an html table. Everything data type, string, int, date, etc. is displaying correctly except for decimal types. The decimal values are being displayed as the ASCII values. For example, 0.00000000 displays as [48 46 48 48 48 48 48 48 48 48].
This is my template:
var htmlTemplate = <table ><tr>{{range .Columns}}<th>{{.}}</th>{{end}}</tr>{{range .Rows}}<tr>{{range .}}<td>{{.}}</td>{{end}}</tr>{{end}}</table>
This is my main function:
func DynamicQueryToHT ..read more
Reddit » The Go Programming Language
1d ago
Hello, I'm facing hard time wrapping my head around these terms in Go.
Method's receiver
receiver value
receiver argument
receiver parameter.
I know what a method receiver is, but things get hard when mixed other words.
submitted by /u/Important-Composer-2
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
1d ago
In your experience, which model is the most adept (less inept probably better stated) at producing Go code?
Thank you for sharing your insights, good coding day to all.
submitted by /u/nando1969
[visit reddit] [comments ..read more
Reddit » The Go Programming Language
2d ago
I reckon a lot of work has gone into building pion webrtc, but my God why is it so badly documented? How's that going to help it get used more or make people appreciate the beauty of Go for concurrency?
submitted by /u/Dasaboro
[visit reddit] [comments ..read more