# update_file **Repository Path**: yushi5344/update_file ## Basic Information - **Project Name**: update_file - **Description**: go 文件上传简单demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-21 - **Last Updated**: 2022-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 文件上传示例 1. 打包mac下 gox -osarch="darwin/amd64" 2. 打包linux下 gox -osarch="linux/amd64" 3. 打包windows下 gox -osarch="windows/amd64" 4. 热更新 air -c .air.toml # 配置文件 ```json { "mode": "debug", "port": "8000", "redisHost": "127.0.0.1:6379", "redisDb": 10, "filePath": "files", "allowOrigin": "*" } ``` - `mode`有以下两种选择 `debug`,`release` - `filePath`为文件上传存放的路径 - `allowOrigin`为跨域是运行访问的域名