gadget

package
v0.0.0-...-a1c84da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 1 Imported by: 0

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 (b Beats) MethodWithParameters(f float64)

func (Beats) MethodWithReturnValue

func (b Beats) MethodWithReturnValue() string

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL