Golang 1.20: What is new?

preview_player
Показать описание
What is new in Golang 1.20? Compared to the 1.19 release there are no major changes to the language but rather additions to the runtime, libraries and toolchain. The are lot of features but there eight I want to call out:

■ Go subcommands -C to change directory
■ Skip pattern support for generate and test
■ Code coverage for running applications
■ vet incorrect times
■ Wrapping multiple errors
■ archive/tar and archive/zip security changes
■ context's new WithCancelCause
■ time's new layout constants and compare

== Installing

== All Go/Golang Playlists

00:00 - Intro Golang 1.20
00:07 - How to install
00:31 - Subcommands accept -C to change directory
01:43 - Skip pattern support for go generate and go test
03:29 - Code coverage for running applications
04:31 - go vet reports incorrect time format
05:13 - errors support wrapping multi-errors
06:51 - archive/tar and archive/zip security improvements
08:52 - context's new method WithCancelCause
10:05 - time's new layout and Compare method
10:59 - Conclusion

=== Who am I?

Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with decades of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

The content I share includes different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don't give up!

#golang #tutorial #go120

=== Follow us along on Instagram for our family adventures

=== Our affiliate links below

DISCLAIMER: Some of the links shared in the description are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. I appreciate your support! 💖
Рекомендации по теме
Комментарии
Автор

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

TheDoppelganger
Автор

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

myrachoantonio
Автор

Thank you bro for summarized the new 1.20 update

fransimanuel
Автор

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.

kamilziemian
Автор

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

firdavs
Автор

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

yeyee
Автор

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?

somegeneralist
Автор

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

wendevv
Автор

error wrapping is the most useful feature of the release.

viktor__
Автор

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.

dawnrazor