Directories
¶
| Path | Synopsis |
|---|---|
|
advanced
|
|
|
example1
command
Sample program that explores how interface assignments work when values are stored inside the interface.
|
Sample program that explores how interface assignments work when values are stored inside the interface. |
|
Sample program that could benefit from polymorphic behavior with interfaces.
|
Sample program that could benefit from polymorphic behavior with interfaces. |
|
Sample program to show how polymorphic behavior with interfaces.
|
Sample program to show how polymorphic behavior with interfaces. |
|
Sample program to show how to understand method sets.
|
Sample program to show how to understand method sets. |
|
Sample program to show how you can't always get the address of a value.
|
Sample program to show how you can't always get the address of a value. |
|
Sample program to show how the concrete value assigned to the interface is what is stored inside the interface.
|
Sample program to show how the concrete value assigned to the interface is what is stored inside the interface. |
|
Sample program to show the syntax of type assertions.
|
Sample program to show the syntax of type assertions. |
|
Sample program to show type assertions using the comma-ok idiom.
|
Sample program to show type assertions using the comma-ok idiom. |
|
Sample program to show the syntax and mechanics of type switches and the empty interface.
|
Sample program to show the syntax and mechanics of type switches and the empty interface. |
|
exercises
|
|
|
exercise1
command
Declare an interface named speaker with a method named speak.
|
Declare an interface named speaker with a method named speak. |
|
template1
command
Declare an interface named speaker with a method named speak.
|
Declare an interface named speaker with a method named speak. |
Click to show internal directories.
Click to hide internal directories.