# go-source-learn **Repository Path**: janlei/go-source-learn ## Basic Information - **Project Name**: go-source-learn - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-20 - **Last Updated**: 2023-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # *Learn For Golang* # 基础语法 ## 包 - package - import - 从main包main方法为程序入口 - 对象中的属性首字母大写表示能被其他包引用(类似于java中的public),小写表示私有 - 根据文件路径来判断包 ## function - 函数方法名首字母大写表示共有,小写表示私有 - 能够返回多个参数值 ## var 变量 - 普通声明 var name Type - 简写 name := value (根据value的值,会自动判断类型) ## const 常量 ## 类型 ## 流程控制 ## 更多类型 ## 单元测试 - TestMethod - JunitTest - Assert # 设计模式 ## [创建型](./src/design_patterns/creational) - 工厂模式 - 构建者模式 ## [行为型](./src/design_patterns/behavioral) - 命令模式 - 迭代器模式 ## [结构型](./src/design_patterns/structural) - 桥接模式 - 门面模式 # 数据结构