123456789101112131415161718192021222324 |
- package lc
- import (
- "fmt"
- )
- // Loudspeaker 扬声器接口
- type Loudspeaker interface {
- Speak()
- }
- type IpCast struct {
- }
- func NewIpCast() *IpCast {
- return &IpCast{}
- }
- func (ip IpCast) Speak() {
- fmt.Println("来车了来车了!")
- }
- //func (ip IpCast) CorrectTime() {}
- //func (ip IpCast)Reconnect(){}
|