项目作者: wildwind123

项目描述 :
Share your files with web
高级语言: Go
项目地址: git://github.com/wildwind123/webShare.git
创建时间: 2020-05-23T11:41:27Z
项目社区:https://github.com/wildwind123/webShare

开源协议:

下载


webShare

v: 1.0 \
Share and upload your files from web server

Compiled version

compiled version can download from
https://github.com/wildwind123/webShare/tree/master/compiled

Run

Linux

download compiled version
chmod -R 777 web_share
./webShare —path /home —port 8006
open http://your_ip:8006

or just run ./webShare
default path will be file folder, default port will be 8000

Windows

web_share.exe
default path will be file folder, default port will be 8000

Help

  1. --port [port] - select port, default = 8000"
  2. --path [fullPath]- select full path, default = programm runned folder
  3. --template [true] - if you want to use yourself template from assets/index.html
  4. --password [password] - set password, username is always 'user'
  5. -h --help - Help

Multiple Build

env GOOS=linux GOARCH=386 go build -o compiled/linux86 ; \
env GOOS=linux GOARCH=amd64 go build -o compiled/linux64 ; \
env GOOS=windows GOARCH=386 go build -o compiled/windows86 ; \
env GOOS=windows GOARCH=amd64 go build -o compiled/windows64 ; \
env GOOS=darwin GOARCH=386 go build -o compiled/mac86 ; \
env GOOS=darwin GOARCH=amd64 go build -o compiled/mac64;