Sandertv/go-raknet ? reverse-engineered prompt
Reverse engineered prompt
Build me a Go library for the RakNet protocol that feels as simple to use as the standard net package.
I want to be able to open a listener on an address, accept connections, dial a server, read and write byte slices, and close everything cleanly. It should support the basic RakNet packet flow used by Minecraft Bedrock Edition, including unreliable, reliable, and reliable ordered messages, and it should send normal user data as reliable ordered by default.
Please make the API easy for both clients and servers, and include a couple of small example programs showing how to listen and how to connect. If there are tricky protocol details, handle them inside the library so the caller does not need to think about them. Keep it idiomatic Go, with clear errors and tests where they make sense. If you need to check current protocol details or docs online, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit