features

package
v0.0.0-...-a42e392 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedirectBangs = map[string]string{
	"!rt":   "https://www.rottentomatoes.com/search?search=%s",
	"!npm":  "https://www.npmjs.com/search?q=%s",
	"!tr":   "https://www.wordreference.com/enfr/%s",
	"!imdb": "https://www.imdb.com/find?s=all&q=%s",
	"!gh":   "https://github.com/search?q=%s",
	"!yt":   "https://www.youtube.com/results?search_query=%s",
	"!d":    "https://www.larousse.fr/dictionnaires/francais/%s",
	"!g":    "https://www.google.com/search?q=%s",
	"!w":    "/weather?q=%s",
	"!gmap": "https://www.google.fr/maps?hl=fr&q=%s",
	"!img":  "https://duckduckgo.com/?q=%s&iax=images&ia=images",
}

Functions

func ExtractUrlFromYrNoDk

func ExtractUrlFromYrNoDk(s string) (string, error)

func ParseFilterBangs

func ParseFilterBangs(q string) string

func ParseRedirectBangs

func ParseRedirectBangs(q string) string

Types

type SearchStats

type SearchStats struct {
	Count              int
	HitRate            int
	HitRateGoogle      int
	HitRateNotOnGoogle int
	Results            []StatsRow
	AppName            string
}

func LoadStats

func LoadStats(an string) (*SearchStats, error)

type StatsRow

type StatsRow struct {
	Query  string
	Found  bool
	Google bool
	URL    string
}

Jump to

Keyboard shortcuts

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