File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed
Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ Custom providers require a few things:
262262* foursquare
263263* freebsdman
264264* freshports
265+ * gibiru
265266* giphy
266267* gist
267268* github
@@ -362,7 +363,7 @@ s is released under the MIT license.
362363[ ReportCard-Image ] : https://goreportcard.com/badge/github.com/zquestz/s
363364[ Build-Status-URL ] : http://travis-ci.com/zquestz/s
364365[ Build-Status-Image ] : https://travis-ci.com/zquestz/s.svg?branch=master
365- [ Release-URL ] : https://github.com/zquestz/s/releases/tag/v0.6.4
366- [ Release-Image ] : http://img.shields.io/badge/release-v0.6.4 -1eb0fc.svg
366+ [ Release-URL ] : https://github.com/zquestz/s/releases/tag/v0.6.5
367+ [ Release-Image ] : http://img.shields.io/badge/release-v0.6.5 -1eb0fc.svg
367368[ Chat-Image ] : https://badges.gitter.im/zquestz/s.svg
368369[ Chat-URL ] : https://gitter.im/zquestz/s?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515
1616const (
1717 appName = "s"
18- version = "0.6.4 "
18+ version = "0.6.5 "
1919 defaultPort = 8080
2020 defaultProvider = "presearch"
2121)
Original file line number Diff line number Diff line change 1+ package gibiru
2+
3+ import (
4+ "fmt"
5+ "net/url"
6+
7+ "github.com/zquestz/s/providers"
8+ )
9+
10+ func init () {
11+ providers .AddProvider ("gibiru" , & Provider {})
12+ }
13+
14+ // Provider merely implements the Provider interface.
15+ type Provider struct {}
16+
17+ // BuildURI generates a search URL for Gibiru.
18+ func (p * Provider ) BuildURI (q string ) string {
19+ return fmt .Sprintf ("https://gibiru.com/results.html?q=%s" , url .QueryEscape (q ))
20+ }
21+
22+ // Tags returns the tags relevant to this provider.
23+ func (p * Provider ) Tags () []string {
24+ return []string {"search" }
25+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ import (
4848 _ "github.com/zquestz/s/providers/foursquare"
4949 _ "github.com/zquestz/s/providers/freebsdman"
5050 _ "github.com/zquestz/s/providers/freshports"
51+ _ "github.com/zquestz/s/providers/gibiru"
5152 _ "github.com/zquestz/s/providers/giphy"
5253 _ "github.com/zquestz/s/providers/gist"
5354 _ "github.com/zquestz/s/providers/github"
You can’t perform that action at this time.
0 commit comments