ioutilx

package
v0.21.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalWindowsPath added in v0.18.0

func CanonicalWindowsPath(orig string) string

func FromUTF16le added in v0.18.0

func FromUTF16le(r io.Reader) io.Reader

FromUTF16le returns an io.Reader for UTF16le data. Windows uses little endian by default, use unicode.UseBOM policy to retrieve BOM from the text, and unicode.LittleEndian as a fallback

func FromUTF16leToString added in v0.18.0

func FromUTF16leToString(r io.Reader) (string, error)

FromUTF16leToString reads from Unicode 16 LE encoded data from an io.Reader and returns a string.

func ReadAtMaximum

func ReadAtMaximum(r io.Reader, n int64) ([]byte, error)

ReadAtMaximum reads n at maximum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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