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 ¶
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)
func GetPkgInfo ¶
func GetPkgInfo(pkgname string) (*PackageItem, error)
https://gowalker.org/api/v1/pkginfo?pkgname=github.com/astaxie/beego
type SearchPackages ¶
type SearchPackages struct {
Packages []*PackageItem `json:"packages"`
}
func NewSearch ¶
func NewSearch(key string) (*SearchPackages, error)
Click to show internal directories.
Click to hide internal directories.