oop

package
v0.0.0-...-f8f499d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpeakOut

func SpeakOut(t Talker)

Types

type Artist

type Artist struct{ Name string }

func (*Artist) Talk

func (a *Artist) Talk()

type Author

type Author struct {
	Name string
	City string
}

type Book

type Book struct {
	Title  string
	Author Author
}

type Human

type Human struct{ Name string }

func (*Human) Talk

func (h *Human) Talk()

type Man

type Man struct{ Human }

func (*Man) Talk

func (m *Man) Talk()

type Painter

type Painter struct{ Artist }

type Talker

type Talker interface{ Talk() }

type Women

type Women struct{ Human }

type Writer

type Writer struct{ Artist }

func (*Writer) Talk

func (w *Writer) Talk()

Jump to

Keyboard shortcuts

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