Building a CLI application with Golang

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

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

  • @maxwebstudio
    @maxwebstudio 11 месяцев назад +20

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

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

    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😀

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

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

  • @mmatongo
    @mmatongo Год назад +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.

  • @thisisreallyme3130
    @thisisreallyme3130 11 месяцев назад +9

    @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 6 месяцев назад +2

      oh no my free weather api key is exposed!

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

    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!

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

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

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

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

  • @Md.TanjilBhuiyan
    @Md.TanjilBhuiyan 4 месяца назад

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

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

    Getting started with Golang, this is an awesome tutorial!

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

    I love golang, very indulgent

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

    this is awesome, thx for the quality video!

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

    Great tutorial! Thanks for providing it.

  • @MariaEduardaMarcondesdosSantos
    @MariaEduardaMarcondesdosSantos 11 дней назад

    Nice tutorial!

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

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

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

    Learning go as my 3rd language. I did not you can parse json that way. Thanks a lot for the very interesting project.

  •  Год назад +1

    Awesome class!

  • @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! 👊

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

    Fantastic tutorial. More please.

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

    What font family are you using? Great job.

  • @kurshadqaya1684
    @kurshadqaya1684 4 месяца назад

    Very informative!

  • @fuzzy-02
    @fuzzy-02 3 месяца назад +2

    Hello, is it possible to use this as reference material?
    I'm learning Go and would like to buikd along with you with my own ouch, and am asking to see in case I ever put it in a public repository.
    (If I ever do, I will naturally leave a link to this video)
    Thank you!

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

      hey, yeah, use it however you want
      you can find the code here as well: cdruc.com/go-weather-cli

  • @AndrasBuzas1908
    @AndrasBuzas1908 4 месяца назад

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

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

    Subscribed.. 👍👍

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

    you from Iași?

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

    Learnt so much. TYSM. Make more GO videos

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

      Thank you! Will do!👊

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

    nice bro,

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

    very good video

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

    Amazing Tutorial ! Thank you.

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

    GREAT tutorial! I subscribed

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

    this is available in github ?

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

    Please more video about inertiajs ❤❤❤

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

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

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

    Golang 💙

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

    Dang this is so cool

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

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

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

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

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

      what do you mean?

  • @hendisantika
    @hendisantika 5 месяцев назад +1

    Is there any github repo link? Thanks

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

    More Golang videos please!

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

      you bet! 👊

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

    which terminal style do u use

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

      im on a mac using default iterm2

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

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

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

    Hi sir can you provide us the repository?

  • @oahnh
    @oahnh 9 месяцев назад

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

    • @lmaoded7505
      @lmaoded7505 9 месяцев назад +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

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

    Bought here by microsoft copilot!

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

      lol 😂

  • @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.

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

    funny

  • @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