Golang 1.18: What is new?

18.03.2022
What is new in Golang 1.18? Generics? Fuzzing? Workspaces? How to install using homebrew? docker? distributing the binaries using Alpine? ■ Examples: https://github.com/MarioCarrion/videos/tree/d5add59e12d3ee54797fcd1b592bb85a48ce1a3b == Installing ■ https://go.dev/dl/#go1.18 ■ MacOS Homebrew: https://github.com/Homebrew/homebrew-core/pull/91369 ■ goenv install: https://github.com/syndbg/goenv: run "goenv install 1.18.0" ■ "go install" https://twitter.com/golang/status/1503787326060875782 == New Feature: Type Parameters / Generics Allows us to implement code that consists of data and behavior where types are not explicitly indicated, the simplest example would be defining a sorting algorithm where it can support any numeric type ■ https://go.dev/doc/faq#Type_Parameters == New Feature: Fuzz Test Support Another testing option that allows us to introduce inputs to our tests in order to find vulnerabilities or inputs that cause crashes ■ https://go.googlesource.com/proposal/+/master/design/draft-fuzzing

Похожие видео

Показать еще