gomrepo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModuleList

func GetModuleList(path string) ([]string, error)

GetModuleList returns the module list (name,version).

Types

type Formatter

type Formatter interface {
	// contains filtered or unexported methods
}

Formatter is the formats to output go module report.

var ASCIIDoc Formatter = (*asciidoc)(nil)

ASCIIDoc is the table formatter for AsciiDoc.

var HTML Formatter = (*html)(nil)

HTML is the table formatter for HTML.

var MD Formatter = (*md)(nil)

MD is the table formatter for markdown.

var Textile Formatter = (*textile)(nil)

Textile is the table formatter for textile.

type GomClient

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

GomClient is the client to get module info from 'go.dev' host.

func NewGomClient

func NewGomClient() *GomClient

NewGomClient returns a new client for go module report.

func (*GomClient) GetLicense

func (g *GomClient) GetLicense(name string) (string, error)

GetLicense returns the license name of the package specified by args.

func (*GomClient) GetLicenseList

func (g *GomClient) GetLicenseList(w io.Writer, modules []string, tf Formatter) error

GetLicenseList returns the formated license table with id, version and license.

Jump to

Keyboard shortcuts

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