utils

package
v0.0.0-...-9cf5c93 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteBytesIfPrompt

func WriteBytesIfPrompt(ctx context.Context, b []byte, writer io.Writer, exp *regexp.Regexp, reader io.Reader) error

WriteBytesIfPrompt writes b into writer once exp got matched in content that is read from reader. A context can be given to control this process with extra mechanism, such as timeout. Error will be returned if encountered any. Also keep in mind that b must be end with `\n` to finalize input on console interactions.

Types

This section is empty.

Directories

Path Synopsis
net
ssh

Jump to

Keyboard shortcuts

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