Writing REST API Client in Go

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024
  • НаукаНаука

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

  • @packagemain
    @packagemain  4 года назад +14

    As you can tell by my hair, quarantine is still here ;)

  • @EadwinTomlinson
    @EadwinTomlinson 4 года назад +7

    Some most excellent software engineering powers on display here! I'm still learning Go so I'll be returning to this vid a few times.

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

    an excellent sample http client video, thank you so much

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

    Beautifully explained

  • @MeeGrimlock
    @MeeGrimlock 4 года назад +5

    Thank You so much for your videos; very practical content

  • @usmanjamil651
    @usmanjamil651 4 года назад +3

    Do you have a video on how to write unit tests for such API calls where you are using a sendRequests function to send the request?
    Great video btw - thanks.

  • @fabioramatis2373
    @fabioramatis2373 4 года назад +4

    Finally!!!!!! Thanks so much

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

    thank you, this helped me immensely

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

    Great tutorial. Just one request for your next video, could you please turn on word wrap when working through code samples? While users can of course rewind to try and follow along on a line when you were typing it previously, it can be difficult to tell what is on longer lines due to the right side being cut off during your presentation. I know not everyone likes having word wrap on, but without the ability to scroll the screen right from our side, we have to skip back and forth during the video sometimes and being able to see what is on the entire line via word wrap can help minimize that. Thanks!

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

      Makes sense, I think I should make sure there are no long lines in the videos

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

    Where will I found this Facest documentation?

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

      It doesn't exist anymore, I am sorry. But I restored the client so you can have a look - github.com/facest/facest-go

  • @baxiry.
    @baxiry. 4 года назад +4

    Do you know that you are a great man?

  • @marinmiletic5780
    @marinmiletic5780 4 года назад +3

    can you start uploading again?

    • @packagemain
      @packagemain  4 года назад +1

      Sure, will try to do one more this weekend

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

    Good Job. You explained not "how" by "why"

  • @iggermanable
    @iggermanable 4 года назад +5

    Seems you have problem with “r” button in the keyboard:)
    Nice content, thanks!

    • @packagemain
      @packagemain  4 года назад +1

      Thanks! My hands were cold :)

  • @mayurpatil2903
    @mayurpatil2903 3 года назад

    which vscode extensions have you used ?

    • @packagemain
      @packagemain  3 года назад

      I don’t think I used many. I used Go Plus for sure

  • @3e1q2w
    @3e1q2w 2 года назад

    Is this baseURL working??? Because I went to test the video, but different from the successful result of the video, mine gave an error and I tried to review the project code, but it continues to give an error.

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

      baseURL is not working anymore, but I restored the client so you can have a look - github.com/facest/facest-go

  • @jayeshthamke7860
    @jayeshthamke7860 4 года назад

    Good content ! 5*. Also do you know how to create godoc and host them in GitHub pages?

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

      Not sure how to do this on GH pages, but you can export godoc to html by using "godoc -html", and then I guess you can configure gh pages to use this html file.

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

    anyone else getting "undefined: NewClient" when running the integration test?

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

    Git page is responding with 404.

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

      I restored the client so you can have a look - github.com/facest/facest-go

  • @s-guytech9160
    @s-guytech9160 3 года назад +1

    Wow.....

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

    like

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

    I mean great tutorial but I can't help to think that's a lot of code for such a simple task!

    • @packagemain
      @packagemain  2 месяца назад +1

      I mean... we spent like 10-20 mins writing only.

    • @drgr33nUK
      @drgr33nUK 2 месяца назад

      @@packagemain you must be good at touch typing :)

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

    Hi Alex. Enjoyed the video. At 11.43 rather than first create a request with a background content and using WithContext it woud be simpler to have called http.NewRequestWithContext(ctx, ... ) on line 46. WithContext will clone the request which is less efficient and more code.