simple

package
v0.0.0-...-5811b38 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 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 Bird

type Bird struct {
	Name string
}

func (Bird) Eat

func (b Bird) Eat() string

func (Bird) Say

func (b Bird) Say() string

func (Bird) String

func (b Bird) String() string

type Eater

type Eater interface {
	Eat() string
}

type EaterAndSpeaker

type EaterAndSpeaker interface {
	Speaker
	Eater
}

type Human

type Human struct {
	Name string
}

func (Human) Eat

func (h Human) Eat() string

func (Human) Say

func (h Human) Say() string

func (Human) String

func (h Human) String() string

type Programmer

type Programmer struct {
	Name string
}

func (Programmer) Eat

func (p Programmer) Eat() string

func (Programmer) Say

func (p Programmer) Say() string

func (Programmer) String

func (p Programmer) String() string

type Speaker

type Speaker interface {
	Say() string
}

Jump to

Keyboard shortcuts

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