Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaySlogan ¶
func SaySlogan(sloganSayer SloganSayer)
SaySlogan takes in a parameter of type SloganSayer
Types ¶
type Hillary ¶
type Hillary struct{}
Hillary implicitly satisfies the SloganSayer interface by implementing the function Slogan. Thus, Hillary is also of type SloganSayer.
type SloganSayer ¶
type SloganSayer interface {
Slogan()
}
Click to show internal directories.
Click to hide internal directories.