correct me if I'm wrong, but first one would not allocate memory, the second one would. But I'm not sure, would need to check myself. I'm only sure the first won't allocate.
Do you guys use this pattern for reading JSON request body? Under the An Improved Handler section: https://www.alexedwards.net/blog/how-to-properly-parse-a-json-request-body ...
let guess = match strconv.Atoi(text) { Ok(n) => n, Err(_) => continue, } vs guess, err := strconv.Atoi(text) if err != nil { continue } right?
Ise here someone who did microservices with monorepository? Is it a good way to small app with just 5 microservices?
Hey there guys, I have created graphql server for simple user management and when I try to connect it to my frontend vue application using vue-apollo I am getting CORS errors ...
What do you guys think about https://serviceweaver.dev/ It's maintained by Google but fairly new I wonder if it's worth a risky try? 🤔 It's only relevant if all your service...
How else would you prevent brute force login attempts?
the casts here, are they "smart casts" or just reinterpretations?
Anyone volunteering to push for linting in compile time? 🙂
I see the immediate benefit of error logs. But what about access logs? Would you implement them for your own web project
Guys let's say I have an error and I want to wrap it using something like fmt.Errorf but I don't want the previous error to show on the string when doing .Error() method. What...
Обсуждают сегодня