iox

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeekerEnd

func SeekerEnd(s io.Seeker) (int64, error)

func Unwrap

func Unwrap(r any) any

Types

type ByteRuneReader

type ByteRuneReader struct {
	RS io.ReadSeeker
}

ByteRuneReader reads each byte as a rune from a io.ReadSeeker ex: when used with regexp \u00ff code point will match byte 0xff and not the utf-8 encoded version of 0xff

func (ByteRuneReader) ReadRune

func (brr ByteRuneReader) ReadRune() (r rune, size int, err error)

func (ByteRuneReader) Seek

func (brr ByteRuneReader) Seek(offset int64, whence int) (int64, error)

type CtxWriter

type CtxWriter struct {
	io.Writer
	Ctx context.Context
}

func (CtxWriter) Write

func (o CtxWriter) Write(p []byte) (n int, err error)

type DiscardCtxWriter

type DiscardCtxWriter struct {
	Ctx context.Context
}

func (DiscardCtxWriter) Write

func (o DiscardCtxWriter) Write(p []byte) (n int, err error)

type ReadErrSeeker

type ReadErrSeeker struct{ io.Reader }

func (*ReadErrSeeker) Seek

func (r *ReadErrSeeker) Seek(offset int64, whence int) (int64, error)

type RuneReadSeeker

type RuneReadSeeker struct {
	RS io.ReadSeeker
}

func (RuneReadSeeker) ReadRune

func (brr RuneReadSeeker) ReadRune() (r rune, size int, err error)

ReadRune reads rune from a io.ReadSeeker

func (RuneReadSeeker) Seek

func (brr RuneReadSeeker) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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