filters

package
v0.0.0-...-bc5839e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromURLParam

func FromURLParam(param string) (map[string][]string, error)

FromURLParam gets filter from url query

func Parse

func Parse(filter []string) (map[string][]string, error)

Parse parses filter format

func ToURLParam

func ToURLParam(filter map[string][]string) (string, error)

ToURLParam marshals filter as a string, used for url query

func Validate

func Validate(filter map[string][]string) error

Validate validates filter key is accepted

Types

This section is empty.

Jump to

Keyboard shortcuts

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