-
Examples used in the following article Rozhraní, metody, gorutiny a kanály v programovacím jazyku Go
-
This article is part of the serie about Go programming language Programovací jazyk Go
- Method declaration and invocation
- Names are not unique
- Method without parameter, method with parameter
- Modify struct in method (pointer usage)
- Modify struct in method (pointer usage, better solution)
- Interface declarations
- Interface declaration (not finished)
- Incompatible return type for interface
- Interface declaration (finished)
- Interface implemented multiple times
- Slice of/with interfaces
- Slice of/with interfaces as parameter
- Multiple interfaces
- Embedded interface
- Simple goroutine implementation
- Wait for goroutine to finish
- Multiple goroutines
- Calling goroutine from another goroutine
- Simple channel
- Worker implementations using channels
- Multiple workers setup
- Channels and deadlock