hosts

package
v0.0.0-...-874f226 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 6 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) (*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