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

Комментарии • 28

  • @dandogamer
    @dandogamer 2 года назад +5

    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"

  • @cmaj7121
    @cmaj7121 Месяц назад

    Love the commentary!

  • @DreanPetruza
    @DreanPetruza 10 месяцев назад +1

    UFC & Go, 2 of my top favorite things in the world, and you sir, combined them beautifully. Thanks!

  • @mozhago8280
    @mozhago8280 Год назад +3

    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.

  • @bjojosimpson
    @bjojosimpson 2 года назад +1

    Good to see you back sir.

  • @bjugdbjk
    @bjugdbjk 2 года назад +2

    U r INSANELY helpful man !! Thnx a ton for ur Go stuff !!

  • @quandaledingle9127
    @quandaledingle9127 Год назад +1

    My guy your content is perfect!

  • @jondoe79
    @jondoe79 2 года назад +1

    Wish you a speedy recovery!

  • @evolagenda
    @evolagenda 2 года назад +3

    would have been cool to see how you use it with a real connection too, good work

  • @chizzlemo3094
    @chizzlemo3094 2 года назад +1

    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?

  • @bjugdbjk
    @bjugdbjk 2 года назад +1

    what crazy terminal u r using, it looks so colorful ...

  • @derekcarday
    @derekcarday 2 года назад

    would be cool to see a video of how you prepare for your videos and the workflow

  • @masrur_qr
    @masrur_qr Год назад +2

    Hooooly sh***t that was cool .😮

  • @oleksiistri8429
    @oleksiistri8429 Месяц назад

    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

  • @denysbahachuk5803
    @denysbahachuk5803 Год назад +1

    👍👍👍👍👍

  • @jasontruter4981
    @jasontruter4981 2 года назад +4

    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.

  • @aslkdjfzxcv9779
    @aslkdjfzxcv9779 Год назад +1

    ok, so if i made a gsp reference you'd understand? 😁

  • @srttkx
    @srttkx 2 года назад

    👋