Golang 1.20: What is new?

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 30

  • @TheDoppelganger29
    @TheDoppelganger29 Рік тому +10

    Thanks for sharing Go news and creating content for it. Means a lot for the community!

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

    Thank you bro for summarized the new 1.20 update

  • @myrachoantonio8832
    @myrachoantonio8832 Рік тому +1

    they seem interesting especially the time, context and cover of code. thank you for posting!

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      Yes, the code coverage for integration testing is a nice addition. Take care.

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

    Excellent video, thanks for sharing!

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      Thanks for watching Gabriel, stay safe!

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

    The context.WithCancelCause was definitely QoL feature.
    This will make it easier to know which part of the code cancels the context by giving appropriate message that attaches to the context itself, rather than using an additional var / chan to store the error / cancellation message . IMO its more verbose & concise that way

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      Agree, it's something I wasn't expecting.

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

      What is QoL feature?

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

      @@vydo4210 quality of life

  • @kamilziemian995
    @kamilziemian995 Рік тому +1

    Thank you. I need to learn C# for my job, but I want to find time for much more enjoyable language, as Go for example.

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      You're welcome, honestly it's never bad to know more than one programming language, however I do understand you, writing idiomatic code in any language takes a toll when context switching to another language.

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

      @@MarioCarrion I agree. In my life I learned to some extent C++, C, Python, Common Lisp, Rust, Julia, Go and I have some encounter with Ruby. Also I learn some HTML and CSS, but I forget almost all of that. I believe that you should know more than one language, but I feel that I'm not good at any one of these.
      I hope that I can learn C# reasonably well for my job. We also use C++, but its complexity is mind bending and I lost hope that I ever learn it in deepth.

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

    Thank you for posting - Go keeps aging like wine!
    I'm getting into nvim and would like to know how you got nvim tree to toggle in the center instead of a sidebar. Do you mind sharing your nvim config?

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

      Sure, I covered that in my previous video ua-cam.com/video/LbsILONOaiE/v-deo.html here's the link to the configuration: github.com/MarioCarrion/videos/tree/269956e913b76e6bb4ed790e4b5d25255cb1db4f/2023/01/nvim

  • @tony-go-code
    @tony-go-code Рік тому

    nice to see you again Mario 🤗

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

    There is a typo in readme file in 4:04, it should be "mkdir -p" instead of "mkdir -o".
    Thanks

  • @wendevv9706
    @wendevv9706 Рік тому +1

    what is the best way to update? I just uninstall previous version and install the latest am I doing it right?

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

      It depends on the operating system and package manager you use; because I'm using homebrew on MacOS I decided to install it via "go install" and use "direnv" to make it the default one, see the note I added in the beginning in the README and the Makefile for more details: github.com/MarioCarrion/videos/blob/979ac3f5d502249ccfc266fbdf801547c51e24b9/2023/02/03/README.md

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

      thanks for reply! I'm using windows10 and new to go. I'm searching right now how to properly update and hoping similar and as easy like rust "rustup update" but none.

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      I haven't had a chance to try using Go on Windows, but I want to assume that if you download the official installer and then you use that it "should" be enough.

  • @dawnrazor
    @dawnrazor Рік тому +1

    Beware of v1.20, lint is broken, resulting in panic. Issues have been raised already, so I’m expecting/hoping for a new release in the non too distant future.

    • @MarioCarrion
      @MarioCarrion  Рік тому +1

      Paul by lint do you mean golangci-lint or what tool are you referring to?

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

      @@MarioCarrion yeah you're right, I mean golanggci-lint. I've reverted back to 19.5 and am waiting until there is another v20 release

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

    error wrapping is the most useful feature of the release.

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

      Agree Viktor, good improvement for sure.