From 5254c000cacad0da1dae973f6d416ce6e68e460b Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Thu, 5 Jan 2017 10:27:33 +0800 Subject: [PATCH] go vet --- uwsgi.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/uwsgi.go b/uwsgi.go index 83c7d2c..d2cf269 100644 --- a/uwsgi.go +++ b/uwsgi.go @@ -18,7 +18,13 @@ type Uwsgi struct { // NewUwsgi create a new Uwsgi func NewUwsgi(network, addr, urlPrefix string) *Uwsgi { u := strings.TrimRight(urlPrefix, "/") - return &Uwsgi{&uwsgi.Passenger{network, addr}, u} + return &Uwsgi{ + Passenger: &uwsgi.Passenger{ + Net: network, + Addr: addr, + }, + URLPrefix: u, + } } // ServeHTTP implements http.Handler interface