# golang **Repository Path**: zhudechao/golang ## Basic Information - **Project Name**: golang - **Description**: golang demo - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-11 - **Last Updated**: 2022-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目摘要 https://awesome-go.com/ Example:参考 https://gobyexample.com/ gin项目启动说明 1:运行初始化数据库脚本 gin/databases 2:执行go build 3:运行可执行文件 postman ``` { "info": { "_postman_id": "bb9cf704-1821-4f8f-9f42-10e288a77fdd", "name": "go", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "登录", "item": [ { "name": "验证码", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [] }, "url": { "raw": "http://127.0.0.1:20201/captcha/", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "20201", "path": [ "captcha", "" ] } }, "response": [] }, { "name": "登录", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "user_name", "value": "admin", "type": "text" }, { "key": "pass", "value": "ginskeleton", "type": "text" }, { "key": "captcha_id", "value": "d47QlJ7GO30NiDLQi4fD", "type": "text" }, { "key": "captcha_value", "value": "5621", "type": "text" } ] }, "url": { "raw": "http://127.0.0.1:20201/admin/users/login", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "20201", "path": [ "admin", "users", "login" ] } }, "response": [] } ] }, { "name": "用户", "item": [ { "name": "创建用户", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX25hbWUiOiJhZG1pbiIsInBob25lIjoiMTU4MDQwMzc5MjkiLCJleHAiOjE2MjM3NzQxOTQsIm5iZiI6MTYyMzc0NTM4NH0.71G4-fdnXuA_QQxti7JHNAxLBkKmZnKzPxxOGDxp1l8", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "user_name", "value": "postman", "type": "text" }, { "key": "real_name", "value": "postman", "type": "text" }, { "key": "phone", "value": "15635478894", "type": "text" }, { "key": "avatar", "value": "", "type": "text" }, { "key": "pass", "value": "123456", "type": "text" }, { "key": "status", "value": "1", "type": "text" }, { "key": "remark", "value": "", "type": "text" } ] }, "url": { "raw": "http://127.0.0.1:20201/admin/users/create", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "20201", "path": [ "admin", "users", "create" ] } }, "response": [] } ] }, { "name": "博客", "item": [ { "name": "创建分类", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX25hbWUiOiJhZG1pbiIsInBob25lIjoiMTU4MDQwMzc5MjkiLCJleHAiOjE2MjQ1NDMwNDcsIm5iZiI6MTYyNDUxNDIzN30.bvJwgIZJRYLZsjg0Pt5VoJ7NbktkY3fRlALmL1M3Af8", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "parent_id", "value": "122", "type": "text" }, { "key": "name", "value": "5ff", "type": "text" } ] }, "url": { "raw": "http://127.0.0.1:20201/admin/article_category/create", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "20201", "path": [ "admin", "article_category", "create" ] } }, "response": [] } ] } ] } ```