Documentation ¶
Index ¶
- Variables
- func AddProvider(name string, provider Provider)
- func DisplayProviders() string
- func ExpandProvider(provider string) (string, error)
- func FatalIf(err error)
- func Language() string
- func ProviderNames() []string
- func Region() string
- func Search(binary string, p string, q string, verbose bool) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers map[string]Provider
Providers tracks loaded providers.
Functions ¶
func AddProvider ¶
AddProvider should be called within your provider's init() func. This will register the provider so it can be used.
func DisplayProviders ¶
func DisplayProviders() string
DisplayProviders displays all the loaded providers.
func ExpandProvider ¶
ExpandProvider expands the passed in provider to the full value.
func Language ¶
func Language() string
Language returns the users language code. Eg. "en", "es", etc
func ProviderNames ¶
func ProviderNames() []string
ProviderNames returns a sorted slice of provider names.
Types ¶
Click to show internal directories.
Click to hide internal directories.