Discover Packages
github.com/anatolykoptev/go-code
internal
websearch
package
Version:
v1.34.0
Opens a new window with list of versions in this module.
Published: Jul 16, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package websearch provides an HTTP client for go-search MCP server.
Used by repo_search to discover repositories via web search.
Client calls go-search MCP server via HTTP.
NewClient creates a go-search client targeting the given MCP base URL.
Search calls go-search smart_search with depth=fast and returns raw results.
The JSON-RPC envelope is built/parsed here; the HTTP transport (marshal,
POST, decode) delegates to httputil.Client to avoid duplicating that
plumbing (mirrors jaegerclient/promclient/dozorclient).
type Result struct {
Title string `json:"title"`
URL string `json:"url"`
Content string `json:"content"`
Score float64 `json:"score"`
}
Result is a single web search result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.