lean into examples
This commit is contained in:
9
examples/interfaces/interfaces.go
Normal file
9
examples/interfaces/interfaces.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Shape interface {
|
||||
area() float64
|
||||
}
|
||||
|
||||
// todo: that great blog post on interfaces
|
||||
Reference in New Issue
Block a user