Documentation
¶
Index ¶
- func FromUTF16le(r io.Reader) io.Reader
- func FromUTF16leToString(r io.Reader) (string, error)
- func ReadAtMaximum(r io.Reader, n int64) ([]byte, error)
- func WindowsSubsystemPath(ctx context.Context, orig string) (string, error)
- func WindowsSubsystemPathForLinux(ctx context.Context, orig, distro string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUTF16le ¶
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 ¶
FromUTF16leToString reads from Unicode 16 LE encoded data from an io.Reader and returns a string.
func ReadAtMaximum ¶
ReadAtMaximum reads n at maximum.
func WindowsSubsystemPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.