在接口的声明内包含想要包含的接口即可

1
2
3
4
5
type Requests interface {
Downloader
Post()
Session()
}

常用系统接口

  1. Stringer
  2. Reader
  3. Writer