mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
20 lines
284 B
Go
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)
|
|
}
|
|
}
|