query

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2018 License: MIT Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package query contains middlewares for manipulating query string on request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key, value string) c.Middleware

Add adds query parameter to any existing query parameter or adds new if there are not existing query parameters to URL.

func Del

func Del(key string) c.Middleware

Del removes query parameter with provided key from URL.

func DelAll

func DelAll() c.Middleware

DelAll removes all query parameters from URL.

func Set

func Set(key, value string) c.Middleware

Set sets value as query parameter with provided key to URL.

func SetMap

func SetMap(queryMap map[string]string) c.Middleware

SetMap adds all query parameters provided in map to URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL