# file-server **Repository Path**: shxsun/file-server ## Basic Information - **Project Name**: file-server - **Description**: File Static Server written by golang. - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-04-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # File Static Server This is file server writen by golang. http-watcher的简化版,除去了其他东西,只保留了文件服务器的东西。 1. 支持地址的二维码 2. 资源文件打包进到二进制文件 ### build ```sh go get -u github.com/jteeuwen/go-bindata/... go clone https://github.com/codeskyblue/file-server go build # you may want to copy file-server binary to $PATH for easy use. prebuilt binary comming soon ``` ### Usage file-server -port 8000 -root /your/code/root file-server ARGS # acceptable args list below, -h to show them -port=8000: Which port to listen -private=false: Only listen on lookback interface, otherwise listen on all interface -root=".": the HTTP File Server's root directory 可用的下载有linux和windows两个。[从github上下载](https://github.com/codeskyblue/file-server/releases/tag/v0.1) ![demo](images/demo.png) ## Thanks 1.