# golang-exercise **Repository Path**: ssqf_admin/golang-exercise ## Basic Information - **Project Name**: golang-exercise - **Description**: go语言学习 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-07-26 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go语言学习笔记 ## 一、基础知识 ## 二、常见的问题 ## 三、连续中遇到的问题 1. 如何给现有类和包添加一个方法? 2. 创建一个类的对象有哪些方法? 3. 类型指针的方法和和非指针方法区别,特别是在做接口时? ```c int main() { } ``` ```go func main() { s := make([]int) } ``` ![图片](F:\图片\head.jpg) ```flow st=>start: Start e=>end: End op1=>operation: My Operation sub1=>subroutine: My Subroutine cond=>condition: Yes or No? io=>inputoutput: catch something... st->op1->cond cond(yes)->io->e cond(no)->sub1(right)->op1 ``` ```sequence 张三->李四: 嘿,小四儿, 写博客了没? Note right of 李四: 李四愣了一下,说: 李四-->张三: 忙得吐血,哪有时间写。 ```