I'm writing to a udp connection like this: if _, err = gudpconn.Write(buffer[:n]); err != nil { fmt.Println("Error writing RTP packet to GStreamer:", err, len(buffer[:n]...
So when is Google de-funding Go?
We can't have a generic value for a map right? Suppose I have these JSON models: { "type": "signup", "data": {username: "", "password": ""} } { "type": "new_post"...
anyone used github.com/orcaman/concurrent-map? Is is it a good package?
But the question aside, how is a DOM parser written? What algorithms and data structures are used? One way I came to think of was to traverse the string and find the first o...
Is it possible to find out how many strings have strings.Reader read so far without incrementing a variable?
Hey guys. I'm working on a crawler that writes data to a file, crawlers can be multiple processes writing to the same file. So how shall I implement sync mutex on files betwee...
Do you guys think packaging using structs is a bad practice? for example you have a models package, and inside you have these structs with methods: User{}.FindAll() Book{}.F...
hey guys, is tcp write synchronous? I mean if we were to do: go tcpConn.write(data1); // 1 go tcpConn.write(data2); // 2 go tcpConn.write(data3); // 3 go tcpConn.write(data4)...
I'm working in an environment where go is installed but it doesn't have access to public internet to download the modules. What I'm currently doing is to manually update need...
Hey guys. I've written most of my html processing from crawled data using strings and regex, but now I'm stuck in this part, and I guess It's only possible with a DOM parser, ...
fatal error: concurrent map writes Does this happen only for writes and reads are ok?
Hey guys, hope you're having a good day. I ran into this problem and wanted to know your opinions on different solutions to it. As you know in HTTP we often expect a request ...
Correct. Another goal of mine is to make the package more handy, but Telegram API's structure makes things a little complicated. For example there are 4 requests for differen...
Users paying for the telegram bot I made to cheat. The bot solves quizes and they progress faster in game. In result they don't pay for coins. You have a good point and I agre...
You seem to be someone from my country too, judging by your information and the emoji you used. But, Microsoft never provided options for people from Iran to pay for their ser...
Go does not have uint8 endian for 1 byte fixed-size variables. How should one decode received packets from tcp with a 1 byte header? Headers are to announce packet length to ...
When is the release date for Generics?
What do you guys think about making all objects in a main package private, and letting the user set their properties through setter methods? I'm working on a Telegram bot API...
How would you check if a number is between 2 other numbers in 24 hour format? So for example, Start: 22 End: 10 Hours: 23, 00, 01, 05