diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-02-05 18:06:54 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-02-05 18:06:54 +0200 |
commit | 5dcb6523641d004a1ac00e3fbbc0f4323e756d5d (patch) | |
tree | 9033f7178f6238d509a442955bf767f70a6f8f0c /examples | |
parent | mention fasthttputil in README (diff) | |
download | fasthttp-5dcb6523641d004a1ac00e3fbbc0f4323e756d5d.tar.gz fasthttp-5dcb6523641d004a1ac00e3fbbc0f4323e756d5d.tar.bz2 fasthttp-5dcb6523641d004a1ac00e3fbbc0f4323e756d5d.zip |
Moved ExpvarHandler to a dedicated package in order to break import cycle
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fileserver/Makefile | 2 | ||||
-rw-r--r-- | examples/fileserver/fileserver.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/fileserver/Makefile b/examples/fileserver/Makefile index fdc85a0..3ea222e 100644 --- a/examples/fileserver/Makefile +++ b/examples/fileserver/Makefile @@ -1,6 +1,6 @@ fileserver: clean go get -u github.com/valyala/fasthttp - go get -u github.com/valyala/fasthttp/fasthttputil + go get -u github.com/valyala/fasthttp/fasthttputil/expvarhandler go build clean: diff --git a/examples/fileserver/fileserver.go b/examples/fileserver/fileserver.go index ef04905..701667a 100644 --- a/examples/fileserver/fileserver.go +++ b/examples/fileserver/fileserver.go @@ -10,7 +10,7 @@ import ( "log" "github.com/valyala/fasthttp" - "github.com/valyala/fasthttp/fasthttputil" + "github.com/valyala/fasthttp/fasthttputil/expvarhandler" ) var ( @@ -51,7 +51,7 @@ func main() { requestHandler := func(ctx *fasthttp.RequestCtx) { switch string(ctx.Path()) { case "/stats": - fasthttputil.ExpvarHandler(ctx) + expvarhandler.ExpvarHandler(ctx) default: fsHandler(ctx) updateFSCounters(ctx) |