librariesio

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client intermediates communication with libraries.io

func NewClient

func NewClient(apiKey string) *Client

NewClient produces a client to libraries.io with the provided apiKey.

func (*Client) LookUp

func (c *Client) LookUp(platform, name string) (*LookUpResult, error)

LookUp attempts to find a look up information about an open source library.

type LookUpResult

type LookUpResult struct {
	HomePage      string `json:"homepage"`
	RepositoryURL string `json:"repository_url"`
}

LookUpResult represents a response we would get from libraries.io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL