0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
imageproxy/imageproxy.go
2013-11-27 14:45:46 -08:00

20 lines
284 B
Go

package main
import (
"log"
"net/http"
"github.com/willnorris/go-imageproxy/proxy"
)
func main() {
p := proxy.NewProxy(nil)
server := &http.Server{
Addr: ":8080",
Handler: p,
}
err := server.ListenAndServe()
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}