Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beats ¶
type Beats int
func (Beats) MethodNotInInterface ¶
func (b Beats) MethodNotInInterface()
func (Beats) MethodWithParameters ¶
func (Beats) MethodWithReturnValue ¶
func (Beats) MethodWithoutParameters ¶
func (b Beats) MethodWithoutParameters()
type Dwight ¶
type Dwight interface { MethodWithoutParameters() // a type satisfies this interface if it has this method MethodWithParameters(float64) MethodWithReturnValue() string // returns a string value }
first define an interface type
type TapePlayer ¶
type TapePlayer struct {
Batteries string
}
func (TapePlayer) Play ¶
func (t TapePlayer) Play(song string)
func (TapePlayer) Stop ¶
func (t TapePlayer) Stop()
type TapeRecorder ¶
type TapeRecorder struct {
Microphone int
}
func (TapeRecorder) Play ¶
func (t TapeRecorder) Play(song string)
func (TapeRecorder) Record ¶
func (t TapeRecorder) Record()
func (TapeRecorder) Stop ¶
func (t TapeRecorder) Stop()
Click to show internal directories.
Click to hide internal directories.