Skip to content

Instantly share code, notes, and snippets.

@justyntemme
Created August 7, 2017 18:14
Show Gist options
  • Save justyntemme/737d5ae20fd3866246e4ca9dccbe15b4 to your computer and use it in GitHub Desktop.
Save justyntemme/737d5ae20fd3866246e4ca9dccbe15b4 to your computer and use it in GitHub Desktop.
package web
import (
"fmt"
"log"
"net/http"
"golang.org/x/crypto/acme/autocert"
)
func Run() {
fs := http.FileServer(http.Dir("public/"))
log.Println(http.Serve(autocert.NewListener("nextwavesolutions.io"), fs))
}
\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment