myio

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: GPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadStream

type ReadStream struct {
	EOF bool
	// contains filtered or unexported fields
}

func InitReadStream

func InitReadStream(sock io.Reader) *ReadStream

func (*ReadStream) ReadLine

func (this *ReadStream) ReadLine() (string, error)

func (*ReadStream) SplitFunc

func (this *ReadStream) SplitFunc(data []byte, atEOF bool) (advance int, token []byte, err error)

用回车换行符分隔

type WriteAtCloser

type WriteAtCloser interface {
	io.WriterAt
	io.WriteCloser
}

type WriteFromStream

type WriteFromStream interface {
	SendFileAt(rs io.ReadCloser, w_off int64) error
}

Jump to

Keyboard shortcuts

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