How To Use A Bytes Buffer In Golang And Make It Even Better?

  Рет қаралды 11,950

Anthony GG

Anthony GG

Күн бұрын

► 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

Пікірлер: 26
@dandogamer
@dandogamer Жыл бұрын
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
@akshay-kumar-007
@akshay-kumar-007 Жыл бұрын
didn't knew about this pattern, thanks man for the comment!!!
@dandogamer
@dandogamer Жыл бұрын
@@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"
@DreanPetruza
@DreanPetruza 7 ай бұрын
UFC & Go, 2 of my top favorite things in the world, and you sir, combined them beautifully. Thanks!
@anthonygg_
@anthonygg_ 7 ай бұрын
❤️
@bjojosimpson
@bjojosimpson Жыл бұрын
Good to see you back sir.
@bjugdbjk
@bjugdbjk Жыл бұрын
U r INSANELY helpful man !! Thnx a ton for ur Go stuff !!
@quandaledingle9127
@quandaledingle9127 Жыл бұрын
My guy your content is perfect!
@mozhago8280
@mozhago8280 Жыл бұрын
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.
@anthonygg_
@anthonygg_ Жыл бұрын
True my bad
@evolagenda
@evolagenda Жыл бұрын
would have been cool to see how you use it with a real connection too, good work
@jondoe79
@jondoe79 Жыл бұрын
Wish you a speedy recovery!
@anthonygg_
@anthonygg_ Жыл бұрын
Thanks!
@masrur_qr
@masrur_qr Жыл бұрын
Hooooly sh***t that was cool .😮
@bjugdbjk
@bjugdbjk Жыл бұрын
what crazy terminal u r using, it looks so colorful ...
@anthonygg_
@anthonygg_ Жыл бұрын
Default vscode
@derekcarday
@derekcarday Жыл бұрын
would be cool to see a video of how you prepare for your videos and the workflow
@anthonygg_
@anthonygg_ Жыл бұрын
Ama in 15 min
@derekcarday
@derekcarday Жыл бұрын
@@anthonygg_ dope!
@denysbahachuk5803
@denysbahachuk5803 Жыл бұрын
👍👍👍👍👍
@chizzlemo3094
@chizzlemo3094 Жыл бұрын
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?
@jasontruter4981
@jasontruter4981 Жыл бұрын
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.
@bigtymer4862
@bigtymer4862 Жыл бұрын
Well said
@jasontruter4981
@jasontruter4981 Жыл бұрын
@@bigtymer4862 thank you
@aslkdjfzxcv9779
@aslkdjfzxcv9779 Жыл бұрын
ok, so if i made a gsp reference you'd understand? 😁
@srttkx
@srttkx Жыл бұрын
👋
Buffered VS UnBuffered Channels In Golang
11:52
Anthony GG
Рет қаралды 9 М.
What is the BEST Way to Study Golang? (and get hired...)
6:40
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 9 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 97 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
How To Avoid Locks (Mutex) In Your Golang Programs?
19:32
Anthony GG
Рет қаралды 10 М.
How And When To Use io.MultiWriter In Golang!?
12:08
Anthony GG
Рет қаралды 6 М.
Making It FAST - 1 Billion Row Challenge in Go
31:54
ThePrimeTime
Рет қаралды 159 М.
Mastering Dependency Injection In Golang
14:29
Anthony GG
Рет қаралды 52 М.
Generics in Golang - Full Guide with Examples & Quiz
19:42
Artem Codes
Рет қаралды 155
How To Refactor A Golang Project By Using Interfaces
18:39
Anthony GG
Рет қаралды 14 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 100 М.
Optimizing Loops In Go | Prime Reacts
10:34
ThePrimeTime
Рет қаралды 84 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 82 М.
How To Build And Structure A Microservice In Golang?!
23:03
Anthony GG
Рет қаралды 54 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 9 МЛН