jsonfile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 2 Imported by: 40

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