-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gibiru and bump version to 0.6.5
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package gibiru | ||
|
||
import ( | ||
"fmt" | ||
"net/url" | ||
|
||
"github.com/zquestz/s/providers" | ||
) | ||
|
||
func init() { | ||
providers.AddProvider("gibiru", &Provider{}) | ||
} | ||
|
||
// Provider merely implements the Provider interface. | ||
type Provider struct{} | ||
|
||
// BuildURI generates a search URL for Gibiru. | ||
func (p *Provider) BuildURI(q string) string { | ||
return fmt.Sprintf("https://gibiru.com/results.html?q=%s", url.QueryEscape(q)) | ||
} | ||
|
||
// Tags returns the tags relevant to this provider. | ||
func (p *Provider) Tags() []string { | ||
return []string{"search"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters