utils

package
v0.0.0-...-ef338a3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pretty

func Pretty(nodes []xml.Node) string

func ResolveIp

func ResolveIp(ip string) string

Types

type Hosts

type Hosts map[string]string

A map from IP to FQDN

var HostMap Hosts

Ok, it's a horrible hack... but I don't know yet how to propagated this variable from Arguments to Printf!

func LoadHostsFile

func LoadHostsFile(filepath string) (Hosts, error)

Take a hosts file in the same format than /etc/hosts file. Currently, the only two first elements are used.

Jump to

Keyboard shortcuts

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