Documentation
¶
Overview ¶
Package bangs detects when queries should be redirected to 3rd party sites
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bangs ¶
Bangs holds a map of !bangs
func New ¶
func New() *Bangs
New creates a pointer with the default !bangs. Use default url unless a region is provided. Region: US, Language: French !a ---> Amazon.com Region: France, Language: English !a ---> Amazon.fr !afr ---> Amazon.fr Note: Some !bangs don't respect the language passed in or may not support it (eg they may support pt but not pt-BR)
TODO: Allow overrides...perhaps add a method or use a config. Note: If we end up using viper for this don't use "SetDefault" as overriding one !bang will replace ALL !bangs. Instead, use "Set".
Click to show internal directories.
Click to hide internal directories.