ioutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopCloser = star.Function{
	FunctionName: "NopCloser",
	Args:         []starlark.Value{io.Reader},
	Returns:      []starlark.Value{io.ReadCloser},
	Call: func(args []interface{}) (resp []interface{}) {
		resp = make([]interface{}, 1)
		resp[0] = ioutil.NopCloser(args[0].(go_io.Reader))
		return
	},
}
View Source
var ReadAll = star.Function{
	FunctionName: "ReadAll",
	Args:         []starlark.Value{io.Reader},
	Returns:      []starlark.Value{star.ByteArray{}, star.Error{}},
	Call: func(args []interface{}) (resp []interface{}) {
		resp = make([]interface{}, 2)
		resp[0], resp[1] = ioutil.ReadAll(args[0].(go_io.Reader))
		return
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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