host

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyUsername = errors.New("empty username")
	ErrEmptyPassword = errors.New("empty password")
	ErrEmptyAddress  = errors.New("empty hostname")
	ErrInvalidPort   = errors.New("invalid port")
)

Functions

func Read added in v0.0.2

func Read(filename string) (map[string][]Host, error)

Types

type Host

type Host struct {
	User     string
	Password string
	Address  string
	Port     int
}

func HostFromLine

func HostFromLine(line string) (Host, error)

Jump to

Keyboard shortcuts

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