2020年11月18日

go里面面向对象

摘要: 基础知识 因为方法和结构体是在一起使用的所以首先定义结构体 type Student struct { Name string Age int } 定义结构体对应方法通过参数绑定调用的结构体 func (persion Persion) Learing() { } #备注:persion Persi 阅读全文

posted @ 2020-11-18 23:39 孤灯引路人 阅读(124) 评论(0) 推荐(0) 编辑

导航