会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
longzhankunlun
博客园
首页
博问
闪存
新随笔
订阅
管理
2020年10月21日
Golang基础(三)
摘要: 接口 【接口的概念】在Go语言中接口(interface)是一种类型,一种抽象的类型 【结构体实现接口方法】 package main import "fmt" type sayer interface { Say() string } type Cat struct{} func (c Cat)
阅读全文
posted @ 2020-10-21 12:25 longzhankunlun
阅读(155)
评论(0)
推荐(0)
编辑