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"` Description string `json:"synopsis"` }
func GetCmdPkgInfo ¶
func GetCmdPkgInfo(pkgname string) (*PackageItem, error)
func GetPkgInfo ¶
func GetPkgInfo(pkgname string) (*PackageItem, error)
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.