• Miek Gieben's avatar
    plugin/rewrite: use request.Request and other cleanups (#1920) · 6dd2cf8c
    Miek Gieben authored
    This was done anyway, but only deep in the functions, just do this
    everywhere; allows for shorter code and request.Request allows for
    caching as well.
    
    Cleanups, make it more Go like.
    * remove unneeded switches
    * remove testdir (why was this there??)
    * simplify the logic
    * remove unneeded variables
    * put short functions on a single line
    * fix documentation.
    * spin off wire funcs in wire.go, make them functions.
    Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
    6dd2cf8c
class.go 1.22 KB