mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
15 lines
241 B
Go
15 lines
241 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
"net/url"
|
|
)
|
|
|
|
// Godocs returns the search link for a given query.
|
|
func Godocs(query string) string {
|
|
query = url.QueryEscape(query)
|
|
reply := fmt.Sprintf("https://godocs.io/?q=%s", query)
|
|
|
|
return reply
|
|
}
|