Skip to content

ntk148v/gosfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang SFS (Golang simple file server)

Simple HTTP server written in pure Golang to serve and upload files

GitHub license GitHub stars


Feature

  • Pure Golang
  • Support upload mutiple files
  • Support nested directories

Getting started

$ go run main.go --help
Usage of /tmp/go-build2896055445/b001/exe/main:
  -bind-addr string
        IP address to bind (default "0.0.0.0")
  -max-size int
        max size of uploaded file (byte) (default 16777216)
  -port int
        port number to listen on (default 2690)
  -root-dir string
        root directory (default "/tmp/gosfs")

$ go run main.go
http: 2022/03/09 17:18:58 Server is starting...
http: 2022/03/09 17:18:58 Server is ready to handle requests at "0.0.0.0:2690"

Screenshots