企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 定义 Go 语言通过关键字`type`和`interface`来声明接口,花括号内包含都是待实现的方法集合 ``` type IFile interface { Read(buf []byte) (n int, err error) Write(buf []byte) (n int, err error) Seek(off int64, whence int) (pos int64, err error) Close() error } ```