Created
January 19, 2017 00:39
-
-
Save alexrios/55abc792f79a4e144fb43a8fc37d44ce to your computer and use it in GitHub Desktop.
Serve a pixel tracking
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 main | |
import ( | |
"net/http" | |
"github.com/gorilla/handlers" | |
"os" | |
) | |
func main() { | |
http.ListenAndServe(":8080", handlers.CombinedLoggingHandler(os.Stdout, http.FileServer(http.Dir("/tmp/")))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment