Skip to content

Instantly share code, notes, and snippets.

@alexrios
Created January 19, 2017 00:39
Show Gist options
  • Save alexrios/55abc792f79a4e144fb43a8fc37d44ce to your computer and use it in GitHub Desktop.
Save alexrios/55abc792f79a4e144fb43a8fc37d44ce to your computer and use it in GitHub Desktop.
Serve a pixel tracking
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