Golang 1.20: What is new?



Golang 1.20: What is new?

Golang 1.20: What is new?

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

■ Examples: https://github.com/MarioCarrion/videos/tree/620f2ac0faddd07e0a99b516b110122a6d533801/2023/02/03
■ Learning Golang: Context package: Cancellations, Deadlines and Request-scoped values: https://youtu.be/mgJMIZsWfB4

== Installing

■ https://go.dev/dl/#go1.20
■ https://go.dev/doc/go1.20
■ All API changes: https://github.com/golang/go/issues/57126
■ “go install”: https://twitter.com/golang/status/1620875197569187840
■ MacOS Homebrew: https://github.com/Homebrew/homebrew-core/pull/122082

== All Go/Golang Playlists

■ Software Architecture in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_GCd12Lrv_evJ3Zhv1dl8B-
■ Building Microservices in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu
■ Go/Golang Tools and Packages: https://www.youtube.com/playlist?list=PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
■ Learning Concurrency Patterns in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fhj_px_DzNzTsXs-mRwv1t
■ Learning Go/Golang : https://www.youtube.com/playlist?list=PL7yAAGMOat_F7bOImcjx4ZnCtfyNEqzCy
■ Learning Relational Databases in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_EgwoQTvNUflrYL_4qzdB7f
■ Testing in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_HSeW4zF0uRL9EaHadE4ZZq

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

■ https://www.instagram.com/ruby_carrion/

=== Our affiliate links below

■ My Amazon Storefront: https://www.amazon.com/shop/rubycarrion
■ Shop my IG posts on my shopLTK page: https://www.shopltk.com/explore/RubyCarrion
■ Vlog camera: Sony RX100 VII https://amzn.to/3qQfvMc
■ Other vlog cameras and gear: https://rubycarrion.com/vlogcamerasandgear/
■ Shop through my links to support the channel: https://rubycarrion.com/shop-my-links/
■ Get a 30 day FREE Trial of Epidemic Sound: https://www.epidemicsound.com/referral/szx441/
■ Join Rakuten for FREE and get $30 when you spend $30: https://www.rakuten.com/r/RUBYRA132?eeid=28187

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! 💖

Comments are closed.