gowalker

package
v0.0.0-...-fecf105 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPkgNotExists    = errors.New("gowalker: package not exist")
	ErrPkgNotGolangCmd = errors.New("gowalker: package not golang cmd package")
)

Functions

func RefreshPkg

func RefreshPkg(pkgname string) error

Types

type PackageItem

type PackageItem struct {
	Id          int64  `json:"id"`
	Name        string `json:"project_name"`
	Path        string `json:"project_path"`
	HomePage    string `json:"homepage"`
	ImportPath  string `json:"import_path"`
	IsCgo       bool   `json:"cgo"`
	IsCmd       bool   `json:"cmd"`
	Tags        string `json:"tags"` // like "master|||1.0.0RC1|||beego1.0.0|||", split by |||
	Description string `json:"synopsis"`
}

func GetCmdPkgInfo

func GetCmdPkgInfo(pkgname string) (*PackageItem, error)

type SearchPackages

type SearchPackages struct {
	Packages []*PackageItem `json:"packages"`
}

func NewSearch

func NewSearch(key string) (*SearchPackages, error)

Jump to

Keyboard shortcuts

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