jsonfile

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostList

type HostList struct {
	// contains filtered or unexported fields
}

HostList is a DiscoverProvider that reads a list of hosts from a JSON file.

func New

func New(filePath string) *HostList

New creates a provider which reads the JSON file for the hosts.

func (*HostList) Hosts

func (p *HostList) Hosts() ([]string, error)

Hosts reads hosts from a JSON file.

Jump to

Keyboard shortcuts

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