Weblite-Go – A simple webserver written in Go
1–8 of 8 posts
Re: Weblite-Go – A simple webserver written in Go
#2python -m SimpleHTTPServer
Works like a charm.
Re: Weblite-Go – A simple webserver written in Go
#3For anyone that doesn't know, python has a handy one-liner on the command line. python -m SimpleHTTPServer Works like a charm.
Re: Weblite-Go – A simple webserver written in Go
#4For anyone that doesn't know, python has a handy one-liner on the command line. python -m SimpleHTTPServer Works like a charm.
Re: Weblite-Go – A simple webserver written in Go
#5For anyone that doesn't know, python has a handy one-liner on the command line. python -m SimpleHTTPServer Works like a charm.
I have had problems with it streaming medium sized video files. Node's http-server was able to serve it.
The old solution we had been trying was weblite, and that needs all the user-content data to be manually added to weblite. Now I get to be lazy, cross platform, and have stand alone binaries ;)
Re: Weblite-Go – A simple webserver written in Go
#6Re: Weblite-Go – A simple webserver written in Go
#7Any obvious reason why this is significantly different than the built-in http.FileServer? https://golang.org/pkg/net/http/#FileServer
However, that code won't deal with other things like changing the port, having a built-in index, or having the server run for a discrete amount of files to serve.
Also, go is no different than Java: https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver.... The server just allows it to be stand alone as an application.
Re: Weblite-Go – A simple webserver written in Go
#8For anyone that doesn't know, python has a handy one-liner on the command line. python -m SimpleHTTPServer Works like a charm.