telnet

package module
v0.0.0-...-ae92a17 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 6 Imported by: 3

README

Telnet

Go package with command line interface to telnet.

Usage

go run ./cmd --host <host> --port <port> <telnet command>

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotOpen = errors.New("connection not open")

Functions

This section is empty.

Types

type Client

type Client struct {
	Timeout time.Duration
	Address string
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

func (*Client) Exec

func (c *Client) Exec(cmd string) (string, error)

func (*Client) Open

func (c *Client) Open() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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