golang实现图片缩放服务器
测试地址 http://127.0.0.1:6789/1000/789.png http://127.0.0.1:6789/400/789.png 中间数字是图片尺寸 package main import ( "fmt" "graphics" "image" "image/png" "log" "net/http" "os" "strconv" "strings" ) func main() { http.HandleFunc("/", doImageHandler) http.ListenAndServe("127.0.0.1:6789", nil) } func doImageHandler(w http.ResponseWriter, r *http.Request) { fmt.P...阅读全文