A method as HTTP response handler.
package main import ( "awesomeProject/imgo" "net/http" ) func main() { http.HandleFunc("/gopher", imgo.Load("gopher.png").HttpHandler) http.ListenAndServe(":8080", nil) }
Last updated 2 years ago