Goproxy -导入“ github.com/autom8ter/goproxy” 用法 键入GoProxy type GoProxy struct { } GoProxy是可配置的单目标反向代理HTTP处理程序,与net / http http.Handler接口兼容 func NewGoProxy func NewGoProxy ( config * config. Config ) * GoProxy NewGoProxy使用指定的路径前缀为每个提供的配置注册一个新的反向代理处理程序 func(* GoProxy)ServeHTTP func ( g * GoProxy ) ServeHTTP ( w http. ResponseWriter , r * http. Request )