domainproviders

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DomainProviders map[string]DomainProvider

Providers tracks loaded providers.

Functions

func AddDomainProvider

func AddDomainProvider(name string, domainProvider DomainProvider)

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 DomainProviderNames

func DomainProviderNames() []string

ProviderNames returns a sorted slice of provider names.

func ExpandDomainProviders

func ExpandDomainProviders(domainProvider string) (string, error)

ExpandProvider expands the passed in provider to the full value.

func FatalIf

func FatalIf(err error)
func Search(binary string, p string, q string, verbose bool) error

Search builds a search URL and opens it in your browser.

Types

type DomainProvider

type DomainProvider interface {
	GetExtension() string
	GetRegex() string
}

Provider interface provides a way to build the URI for each provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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