basic

package
v0.0.0-...-502d01b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call0

func Call0(u ...interface{})

example0

func Call1

func Call1(u *User)

example1

func Call2

func Call2(u *User) int

example2

func Call3

func Call3(u *User) int

example3

func Call4

func Call4(u *User) int

func Call5

func Call5(u *User) int

func Call6

func Call6(u *User)

example4

func Call7

func Call7(u *User)

func Call8

func Call8(u *User)

func Call9

func Call9(u1 *User, u2 *User, u3 *User)

func Hash

func Hash(b []byte) uint64

FNV-1a

func Speak

func Speak(s Speakable) string

Types

type FullSystem

type FullSystem struct {
	S *System
}

type Human

type Human struct {
	Name string
	Age  int
}

func (*Human) Greet

func (h *Human) Greet() string

type Speakable

type Speakable interface {
	Greet() string
}

type Student

type Student struct {
	Human
	Class      int
	Speciality string
}

type Student1

type Student1 struct {
	Talkable
	Name string
	Age  int
}

func (*Student1) TalkChinese

func (s *Student1) TalkChinese(s1 string)

func (*Student1) TalkEnglish

func (s *Student1) TalkEnglish(s1 string)

type System

type System struct {
	U *User
}

func (*System) SetUser

func (s *System) SetUser(u *User)

func (System) SetUser1

func (s System) SetUser1(u *User)

type Talkable

type Talkable interface {
	TalkEnglish(string)
	TalkChinese(string)
}

type User

type User struct {
	Name string
	Age  int
}

func NewUser

func NewUser() *User

Jump to

Keyboard shortcuts

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