ioutillib

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: CC0-1.0, CC0-1.0, CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferArg

func BufferArg(c *rt.GoCont, n int) (*bytes.Buffer, error)

BufferArg turns a continuation argument into a *bytes.Buffer.

func BufferedReaderArg

func BufferedReaderArg(c *rt.GoCont, n int) (*bufio.Reader, error)

BufferedReaderArg turns a continuation argument into a *bufio.Reader.

func BufferedWriterArg

func BufferedWriterArg(c *rt.GoCont, n int) (*bufio.Writer, error)

BufferedWriterArg turns a continuation argument into a *bufio.Writer.

func LimitedReaderArg

func LimitedReaderArg(c *rt.GoCont, n int) (*io.LimitedReader, error)

LimitedReaderArg turns a continuation argument into an *io.LimitedReader.

func StringBuilderArg

func StringBuilderArg(c *rt.GoCont, n int) (*strings.Builder, error)

StringBuilderArg turns a continuation argument into a *strings.Builder.

func StringReaderArg

func StringReaderArg(c *rt.GoCont, n int) (*strings.Reader, error)

StringReaderArg turns a continuation argument into a *strings.Reader.

func ValueToBuffer

func ValueToBuffer(v rt.Value) (*bytes.Buffer, bool)

ValueToBuffer turns a Lua value to a *bytes.Buffer if possible.

func ValueToBufferedReader

func ValueToBufferedReader(v rt.Value) (*bufio.Reader, bool)

ValueToBufferedReader turns a Lua value to a *bufio.Reader if possible.

func ValueToBufferedWriter

func ValueToBufferedWriter(v rt.Value) (*bufio.Writer, bool)

ValueToBufferedWriter turns a Lua value to a *bufio.Writer if possible.

func ValueToLimitedReader

func ValueToLimitedReader(v rt.Value) (*io.LimitedReader, bool)

ValueToLimitedReader turns a Lua value to an *io.LimitedReader if possible.

func ValueToStringBuilder

func ValueToStringBuilder(v rt.Value) (*strings.Builder, bool)

ValueToStringBuilder turns a Lua value to a *strings.Builder if possible.

func ValueToStringReader

func ValueToStringReader(v rt.Value) (*strings.Reader, bool)

ValueToStringReader turns a Lua value to a *strings.Reader if possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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