loudspeaker.go 143 B

1234567891011121314
  1. package lc
  2. import "fmt"
  3. type Loudspeaker interface {
  4. Speak()
  5. }
  6. type IpCast struct {
  7. }
  8. func (ip IpCast) Speak() {
  9. fmt.Println("语音")
  10. }