go语言学习示例
学习环境
- centos7
- go v1.20
具体版本请查看每个项目里的 go.mod
| 编号 | 示例 | 说明 |
|---|---|---|
| 001 | gin_swagger_demo | 使用gin和swagger搭建http接口和文档示例 |
| 002 | gin_auth_demo | gin使用baseAuth示例 |
| 003 | gin_apikey_demo | gin从HTTP Header获取APIKEY示例 |
| 004 | gin_querystring_demo | gin在querystring传参并添加到文档示例 |
| 005 | gin_json_parser_demo | gin解析json |
| 006 | gin_json_response_demo | gin响应json |
| 007 | gin_logger_demo | gin使用日志功能 |
| 008 | godotenv_demo | godotenv使用示例 |
| 009 | gin_swagger_with_folder | gin 带api文件夹生成 swagger 接口文档 |
| 010 | gin_path_parameter_demo | gin 通过path传参示例 |
| 011 | jsonstr2respstruct | json字符串转结构体示例 |
| 012 | gorountine_demo | 使用gorountine示例 |
| 013 | gin_httptest | gin 使用测试示例 |
| 014 | cron_demo | cron定时任务工具示例 |
| 015 | encryption_demo | 字段加密示例 |
| 016 | gin_custom_validation | 自定义校验示例 |
| 017 | gin_upload_file | 上传文件示例 |