Advanced JSON Handling in Go

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ •

  • @June-c2q
    @June-c2q Рік тому +4

    I've been searching for solutions for these problems a whole day.
    Thanks so much this is wonderful.

  • @lobobogard9236
    @lobobogard9236 11 місяців тому +3

    Thank you very much for this tutorial and I had a lot of problems in those cases and I had not found something as complete as this because I did not know mainly if there were ways in which golang would handle them in a concrete way but as I see one has to figure it out I think there must be something for these types of cases because sometimes it is very complex to handle them but with your examples you help me on how to handle them currently, thank you very much from Mexico

  • @matthew1106
    @matthew1106 6 місяців тому +3

    This is pure gold. Thanks so much for uploading this.

  • @Technoyote
    @Technoyote 5 місяців тому +2

    Phew! I think if I encountered that “hybrid struct” type in the wild I’d ask the other team to change their API 😂
    Nice video, very helpful!

  • @JimRohn-u8c
    @JimRohn-u8c Рік тому +4

    Yes! Another channel on Go 😈💯🔥

  • @andrewkillen7602
    @andrewkillen7602 11 місяців тому +1

    Thanks so much for this. It covered all my questions and more. An excellent tutorial.

  • @KennethFeur
    @KennethFeur 10 місяців тому +5

    I was really enjoying writing in go until i had to unmarshal complicated json... Maybe with these techniques it will be not so painful, thank you for sharing your knowledge.

  • @amir.moqaddam
    @amir.moqaddam Рік тому +1

    thank you for sharing experiences.

  • @yogeshdharya3857
    @yogeshdharya3857 Рік тому +2

    4:30 struct fields should be kept CamelCased otherwise wouldn't support marshalling and unmarshalling ! Brother I actually didn't know that .Thank u so much

    • @boldlygo
      @boldlygo  Рік тому +2

      Well, they need to be exported anyway 😉

  • @jf3518
    @jf3518 Рік тому +3

    The problem with private fields in unmarshaling is, that there is no error returned, when the expected struct field is non existent for the returned json. Making it very hard to find these bugs.

  • @SuperMANTHER
    @SuperMANTHER Рік тому

    I don't know if the language has changed or what, but i copied you example letter for letter on the "Array or single element" piece and it doesn't work. data[0] would be '[' as opposed to '"'. And in fact data[1] seems to be a escape seq "\"".
    Maybe ive missed something. Not spotting it yet.

  • @louiseyousre
    @louiseyousre Рік тому

    what did you use to create this slideshow with code examples?

  • @4wdandcoffee
    @4wdandcoffee 4 місяці тому

    the book seems not complete and only 5%, do you have a plan when it will be completed?

    • @joevijay
      @joevijay 25 днів тому

      I have the same question.

  • @GustavoDiaz93
    @GustavoDiaz93 2 роки тому +1

    Is your book only 5% completed since 2020? When is going to be complete? Nice video.

    • @boldlygo
      @boldlygo  2 роки тому +1

      Thanks for asking. Yes, that book has been a bit neglected. I do have some more content that's ready to be added, just waiting for a spare moment.
      I'll try to get to that sooner than later now that you've reminded me!

    • @GustavoDiaz93
      @GustavoDiaz93 2 роки тому +1

      @@boldlygo Awesome! I’ll keep an eye on it.

  • @kerrykreiter445
    @kerrykreiter445 6 місяців тому

    Your intro is “George Lucas approved” 🤩

    • @boldlygo
      @boldlygo  6 місяців тому

      Gene Roddenberry just rolled over in his grave! 🤣

    • @kerrykreiter445
      @kerrykreiter445 5 місяців тому +1

      Wait….isn’t Gene drifting in space? No grave to roll over in, right? Sorry Gene, no disrespect intended