We look at examples of what interfaces are and how to use them.
Text edition: blog.ildarkarymov.ru/posts/in...
00:00 - Intro
00:21 - Abstract Data Types
01:21 - What Interface Is?
01:49 - Go Standard Library Examples
02:51 - Example. Storing logs
04:09 - Example. Data storage
05:24 - Example. Mocking storage in tests
05:48 - Empty interface (interface{})
07:12 - Weird facts about nil and interfaces
08:53 - Summary
09:13 - The End
Useful links:
- Section about interfaces in Effective Go: golang.org/doc/effective_go.h...
- Chapter about interfaces in A Tour of Go: go.dev/tour/methods/9
- Thread about nil and interfaces in Go Nuts: groups.google.com/g/golang-nu...
Music from Tunetank.com
ROADTOMUSIC - Smooth Vibes (Copyright Free Music)
Download free: tunetank.com/t/4rht/5572-smoo...
Music from Tunetank.com
Crystal Squad - Isolation (Copyright Free Music)
Download free: tunetank.com/t/4rht/3841-isol...
Music from Tunetank.com
danyvin - Pretty Lofi (Copyright Free Music)
Download free: tunetank.com/t/4rht/3741-pret...
Music from Tunetank.com
Crystal Squad - In My Mind (Copyright Free Music)
Download free: tunetank.com/t/4rht/3471-in-m...
Music from Tunetank.com
AHOAMI - Riverbank (Copyright Free Music)
Download free: tunetank.com/t/4rht/4272-rive...
Пікірлер: 41