Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang_asynctask
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3548663d
authored
Apr 22, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
c3ddcf2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
README.md
README.md
View file @
3548663d
# golang-asynctask
_demo
# golang-asynctask
## 如何使用该项目 :
#### 该示例的项目名称为 : go
-supplier-sync
, 如果你要使用,请自行替换成你的项目名称
#### 该示例的项目名称为 : go
lang-asynctask
, 如果你要使用,请自行替换成你的项目名称
### 1.clone项目
git clone
ssh://git@119.23.72.7:22611/sunlong_v5/golang-asynctask_demo
.git
git clone
http://119.23.72.7/sunlong_v5/golang-asynctask
.git
### 2.复制项目
1.
将golang-asynctask
_demo复制一份成你的自己的项目,比如go-supplier-sync
1.
将golang-asynctask
复制一份成你的自己的项目,比如xxxxxxxxx
2.
删除.git文件夹,重新初始化git
### 3.修改项目文件夹名称
1.
将 golang-asynctask
_demo 改成 go-supplier-sync
1.
将 golang-asynctask
改成 xxxxxxxxxx
2.
编辑器批量修改包名 : golang-asynctask
_demo/ => go-supplier-sync
/
2.
编辑器批量修改包名 : golang-asynctask
/ => xxxxxxx
/
### 4.修改go.mod文件(重要)
一定要修改go.mod文件,要不然无法跑起来
把go.mod的第一行 : module go
-supplier-sync 修改成 module go-supplier-sync
把go.mod的第一行 : module go
lang-asynctask 修改成 module xxxxxx
### 5.修改http监听地址
config/proxy.toml.http.addr 修改成你的ip地址或者本地127.0.0.1
...
...
@@ -48,15 +48,9 @@ go run ./cmd/main.go -config=./config/dev/ -logdir = ./logs/
├── config 配置
├── document
├── util 包管理
├── middleware 中间件
├── router 路由
├── resources
├── go.mod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment