How To Use A Bytes Buffer In Golang And Make It Even Better?
HTML-код
- Опубликовано: 7 фев 2025
- ► Join my Discord community for free education 👉 / discord
► Become a Patreon for exclusive tutorials 👉 / anthonygg_
► Follow me on Twitter 👉 / anthdm
► Follow me on GitHub 👉 github.com/anthdm
In this Golang tutorial, I'm going to show you the power of Golang's Bytes Buffer type.
#golang
This reminds me of the "accept interfaces return structs" pattern in golang. I love go's embedding, it's very nice to compose different functionality together. Definitely beats inheritance
didn't knew about this pattern, thanks man for the comment!!!
@@akshay-kumar-007 like all patterns, dont use it as a silver bullet . I've seen plenty of times where people make things difficult for themselves just to meet "best practices" or "go standards"
Love the commentary!
UFC & Go, 2 of my top favorite things in the world, and you sir, combined them beautifully. Thanks!
❤️
Great video, what is the point to have io.Closer inside the struct, there is no need to have it there as long as you are implementing the close method.
True my bad
Good to see you back sir.
U r INSANELY helpful man !! Thnx a ton for ur Go stuff !!
My guy your content is perfect!
Wish you a speedy recovery!
Thanks!
would have been cool to see how you use it with a real connection too, good work
Thanks for this, maybe its a little more complex than I can handle. Say Im sending a 10.5MB file over https and then I receive it in 11 chunks, how do I rebuild the file?
what crazy terminal u r using, it looks so colorful ...
Default vscode
would be cool to see a video of how you prepare for your videos and the workflow
Ama in 15 min
@@anthonygg_ dope!
Hooooly sh***t that was cool .😮
There are so many different buffers, writers, readers, that i as a newcomer, have no idea which one to use in which case, i end up not using them at all😂, i know its bad, i should use them
👍👍👍👍👍
I would prefer if the function returns a err and close function. In this way you require the developer to call close. This is evaluated lazily.
Well said
@@bigtymer4862 thank you
ok, so if i made a gsp reference you'd understand? 😁
👋