#cat httpsfile.go
package main import "net/http" func main(){ h := http.FileServer(http.Dir(".")) //this is https form //http.ListenAndServeTLS(":8001", "rui.crt", "rui.key", h) //normal http, port is 8001 http.ListenAndServe(":8001", h) }