Documentation ¶
Index ¶
Constants ¶
View Source
const ( // All indicates SearchSites should return all sites from the vault. All searchType = iota // One indicates SearchSites should return only one site from the vault. // It is used when printing a site. One // Search indicates that SearchSites should return all sites found that // match that contain the searchFor string Search )
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find(frag string)
Find will search the vault for all occurences of frag in the site name.
func SearchAll ¶
func SearchAll(st searchType, searchFor string) (allSites map[string][]pio.SiteInfo, allErrors []error)
SearchAll will perform a search of searchType with optionally used searchFor. It will return all sites as a map of group names to pio.SiteInfo types. That way, callers of this function do not need to sort the sites by group themselves.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.