interface are kinda magical? you don't have to implment or extend them from the structs. it is based on signatue of functions.
you implement them implicitly
How can I grab the text pending on console input (before user press enter to confirm) ?
I've built a utility for embedding binaries in JSON. I created a helper for images. Does anyone know of any other "binary things" you often interact with in golang that's apar...
Hey all, anyone have any idea where the GCCGO development roadmap is posted? Google really isn't helping.
Ise here someone who did microservices with monorepository? Is it a good way to small app with just 5 microservices?
before "Era=1&Payload=JaBh0GIs3mD4vtlsqA2O2DCnoWGcB5tPj+EW9BBK9zCYdiKx803hzCGnAnnX5cI8 rSIAm/99mkgcICMDV/JsDFJ3M33Z6aAT &AuthHash=mkr3lvHVYaLy008u4WAWRhpg9oc= " Go http lib d...
let guess = match strconv.Atoi(text) { Ok(n) => n, Err(_) => continue, } vs guess, err := strconv.Atoi(text) if err != nil { continue } right?
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...
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 ...
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...
So my question would narrow down to: is this an appropriate error message? It's a default message by go if the input doesn't match the struct target { "error": "json: ca...
Обсуждают сегодня