Building a CLI application with Golang

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • In this video we'll build a simple golang cli app that shows the weather forecast for the day.

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

  • @maxwebstudio
    @maxwebstudio 7 месяцев назад +13

    Man that quick tutorial is so cool. Well explained, straight to the point! Thank you !

  • @AndrasBuzas1908
    @AndrasBuzas1908 16 дней назад

    my grandmother lied...romanians do have some IQ indeed!
    Good video

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

    Dude, your vids are very interesting, love them ❤️

  • @flamethrower883
    @flamethrower883 20 дней назад

    Dang this is so cool

  • @sagarhp.infosec
    @sagarhp.infosec Год назад

    Subscribed.. 👍👍

  • @jondoe79
    @jondoe79 Год назад +15

    You should do a series on golang, really love how you have set the example of using golang features

  • @hendisantika
    @hendisantika Месяц назад +1

    Is there any github repo link? Thanks

  • @Rhidayah
    @Rhidayah Год назад +9

    I love golang, very indulgent

  • @thisisreallyme3130
    @thisisreallyme3130 7 месяцев назад +6

    @cdruc you should consider re-generating your API key. I copied yours from the video, tried it myself and it worked :-)
    That said, thanks for this and the Hangman video. I'm mainly interested in learning Golang, and I like your straightforward natural style of starting simple and remaining simple, progressively rewriting the app. Cheers.

    • @ohmsohmsohms
      @ohmsohmsohms Месяц назад +1

      oh no my free weather api key is exposed!

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

    this is available in github ?

  • @BbB-vr9uh
    @BbB-vr9uh 6 месяцев назад +2

    Could you add chapters? There are a few distinct sections, and it would be easier to revisit certain sections that way. Thanks for the great tutorial!

  • @Md.TanjilBhuiyan
    @Md.TanjilBhuiyan 3 дня назад

    Its really cool tutorial. will test it out today. Thanks for sharing

  • @Zmey5656
    @Zmey5656 3 месяца назад +1

    Why didn't you use the website to convert json to struct?

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

      what do you mean?

  • @abdulrahmanbinali3051
    @abdulrahmanbinali3051 Год назад +13

    I'm learning Go as first programing language, I admire how you are coding this weather app effortlessly. Great work man .

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

      thanks! i’m pretty new to go myself😀

  • @Hoo-jj4er
    @Hoo-jj4er 2 месяца назад +2

    this is awesome, thx for the quality video!

  • @Mortagus
    @Mortagus 10 месяцев назад +3

    I love this style of video : very straight ti the point.
    Good example, thanks for that ^^

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

    I am on windows which folder should I move the sun.exe?

  • @刘璨竹
    @刘璨竹 5 месяцев назад

    If my operating system is windows, what should I do in the last part

  • @Blue-bb9ro
    @Blue-bb9ro 5 месяцев назад +3

    Getting started with Golang, this is an awesome tutorial!

  • @mmatongo
    @mmatongo 8 месяцев назад +2

    I recently got into go and I wanted something I could do and this was the perfect starter project. This project is so general purpose I used a random api for this and still got expected results all the time.

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

    Hi sir can you provide us the repository?

  • @kurshadqaya1684
    @kurshadqaya1684 17 дней назад

    Very informative!

  • @noahhernandez2652
    @noahhernandez2652 5 месяцев назад

    1:34 what does closing the body of the response do? (in defer res.Body….) great tutorial!

    • @lmaoded7505
      @lmaoded7505 4 месяца назад +2

      In some cases, if you don't close the response body, you can get memory leaks. Like, imagine 1000 users using this application at the same time to get data. If the response is not cleared out, it will still be present somewhere in data and soon the application will run out of memory.
      This is much more prevalent in webservers as compared to cli programs as a CLI program terminates after it's done, unlike a webserver which is always running

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

    Great idea and clean code! Is that the Tokyo Night VScode theme? Looks dope

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

      It's Night owl - but I just check those Tokyo themes and they do look really nice, so thanks! 👊

  • @arihasan3423
    @arihasan3423 9 месяцев назад +1

    Really awesome tutorial! Thanks for taking time to make such a great video to help us get a better understanding of Golang!

  • @tuananhdo1870
    @tuananhdo1870 3 месяца назад

    Bought here by microsoft copilot!

    • @cdruc
      @cdruc  3 месяца назад

      lol 😂

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

    Please more video about inertiajs ❤❤❤

  • @adicide9070
    @adicide9070 Год назад

    I was like oh ok didn't know we could nest anonymous structs like that and then I was like OK you duplicate so much you definitely should not do that :D also ... short lines, dude, pleae, especially in a video where you have a split screen. cool little tool, tho.

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

    Amazing Tutorial ! Thank you.

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

    Learnt so much. TYSM. Make more GO videos

    • @cdruc
      @cdruc  10 месяцев назад

      Thank you! Will do!👊

  • @gideaoms
    @gideaoms 3 месяца назад

    What font family are you using? Great job.

  • @shoko7
    @shoko7 3 месяца назад

    which terminal style do u use

    • @cdruc
      @cdruc  3 месяца назад

      im on a mac using default iterm2

  •  9 месяцев назад +1

    Awesome class!

  • @zxey8611
    @zxey8611 Год назад

    Salut 🇷🇴❤. Foarte tare videoul, as dori sa invat si eu go pentru backend crezi ca e o alegere buna ?

  • @bardus_hobus
    @bardus_hobus 5 месяцев назад

    GREAT tutorial! I subscribed

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

    very good video

  • @prashantr3192
    @prashantr3192 5 месяцев назад

    Fantastic tutorial. More please.

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

    More Golang videos please!

    • @cdruc
      @cdruc  Год назад

      you bet! 👊

  • @ivayloivanov3744
    @ivayloivanov3744 11 месяцев назад

    funny

  • @algolanduz
    @algolanduz Год назад

    nice bro,

  • @fmonel
    @fmonel Год назад

    Golang 💙

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

    Hey really get vid, but I was wondering if you could share like your GitHub link for this code in particular. Thank youu

    • @cdruc
      @cdruc  Год назад

      thanks!
      no github, but I do have a blog post here: cdruc.com/go-weather-cli