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.

Index

Package Files

gddo.go

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 3 packages. Updated 2016-07-21. Refresh now. Tools for package owners.