module
0.0.0-20241105073356-5e895761ed47
Repository: https://github.com/afterloe/golangstudy.git
Documentation: pkg.go.dev
# README
go语言学习笔记
create by afterloe
version is 1.4
MIT License
目录
golang 教程 学习笔记&开发日记
golang 开发的规范请参考官方的标准
笔记
golang day08中的项目已经单独立项了,可以关注 https://github.com/afterloe/AwPaas 下的 https://github.com/afterloe/awpaas-manager 项目
时隔半年继续更新,用go做了一个项目,将项目中碰到的点滴分享一下。将原来的第七天的内容改为了udp,第九天增加了c++扩展, 具体目录如下
直接阅读点这里
- 第一天
- 变量、常量
- map & slice 的初始化及使用
- make & new 以及默认值
- 第二天
- 函数、流程、goto、循环
- 结构体 struct
- 第三天
- channel、多线程
- 反射、匿名函数、interface继承
- 第四天
- 反射的使用
- 读取、写入文件与json处理
- 分包分模块使用
- 第五天
- 数据库连接
- 字符串模板使用,输出流字符串转换
- interface进阶使用
- 第六天
- http服务之默认路由
- 自定义路由
- 文件上传
- 第七天
- udp服务
- udp客户端
- 远程命令控制
- 第八天
- 单元测试
- 压力、性能测试
- mock 测试
- 第九天
- 编译安装protoc
- gRPC服务构建步骤
- C++客户端调用测试
- 第十天
备忘录
golang 环境准备
wget https://dl.google.com/go/go1.12.linux-amd64.tar.gz
sudo tar xzvf go1.12.linux-amd64.tar.gz -C /usr/local/
配置go path 及 go root
$ sudo vim /etc/profile.d/go.sh
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# Set the GOPROXY environment variable
export GOPROXY=https://goproxy.io,direct
# Set environment variable allow bypassing the proxy for specified repos (optional)
export GOPRIVATE=git.mycompany.com,github.com/my/private
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author