hosts

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package hosts provides address lookups from hosts file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hosts

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

Hosts represents a file containing hosts_sample

func New

func New(path string, finder finder.Finder) (*Hosts, error)

func (*Hosts) Find

func (h *Hosts) Find(name string) (ipv4List []net.IP, ipv6List []net.IP)

Jump to

Keyboard shortcuts

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