utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstWord

func FirstWord(s string) string

func LogErrorf

func LogErrorf(format string, args ...interface{}) error

Types

type Stdio

type Stdio struct {
	// contains filtered or unexported fields
}

func NewDefaultStdio added in v0.7.1

func NewDefaultStdio() *Stdio

func NewStdio added in v0.7.1

func NewStdio(in io.ReadCloser, out io.WriteCloser) *Stdio

func (*Stdio) Close

func (s *Stdio) Close() error

Close implements io.Closer interface.

func (Stdio) LocalAddr

func (s Stdio) LocalAddr() net.Addr

LocalAddr implements net.Conn interface.

func (Stdio) Network

func (Stdio) Network() string

Network implements net.Addr interface.

func (*Stdio) Read

func (s *Stdio) Read(b []byte) (int, error)

Read implements io.Reader interface.

func (Stdio) RemoteAddr

func (s Stdio) RemoteAddr() net.Addr

RemoteAddr implements net.Conn interface.

func (Stdio) SetDeadline

func (Stdio) SetDeadline(t time.Time) error

SetDeadline implements net.Conn interface.

func (Stdio) SetReadDeadline

func (Stdio) SetReadDeadline(t time.Time) error

SetReadDeadline implements net.Conn interface.

func (Stdio) SetWriteDeadline

func (Stdio) SetWriteDeadline(t time.Time) error

SetWriteDeadline implements net.Conn interface.

func (Stdio) String

func (Stdio) String() string

String implements net.Addr interface.

func (*Stdio) Write

func (s *Stdio) Write(b []byte) (int, error)

Write implements io.Writer interface.

Jump to

Keyboard shortcuts

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