go: github.com/shurcooL/go/gddo Index | Files

package gddo

import "github.com/shurcooL/go/gddo"

Package gddo is a simple client library for accessing the godoc.org API.

It provides a single utility to fetch the importers of a Go package.


Package Files


type Client Uses

type Client struct {
    // UserAgent is used for outbound requests to godoc.org API, if set to non-empty value.
    UserAgent string

Client manages communication with the godoc.org API.

func (*Client) GetImporters Uses

func (c *Client) GetImporters(importPath string) (Importers, error)

GetImporters fetches the importers of Go package with specified importPath via godoc.org API.

type Importers Uses

type Importers struct {
    Results []Package

Importers contains the list of Go packages that import a given Go package.

type Package Uses

type Package struct {
    Path     string // Import path of the package.
    Synopsis string // Synopsis of the package.

Package represents a Go package.

Package gddo imports 3 packages (graph) and is imported by 7 packages. Updated 2018-11-18. Refresh now. Tools for package owners.