Created
August 7, 2017 18:14
-
-
Save justyntemme/737d5ae20fd3866246e4ca9dccbe15b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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