file

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = _p0.Exports{
	{N: "create", T: _p0.Func, F: _create},
	{N: "create_temp", T: _p0.Func, F: _create_temp},
	{N: "open", T: _p0.Func, F: _open},
	{N: "read_all", T: _p0.Func, F: _read_all},
	{N: "remove", T: _p0.Func, F: _remove},
	{N: "seek", T: _p0.Func, F: _seek},
	{N: "stat", T: _p0.Func, F: _stat},
	{N: "write_to", T: _p0.Func, F: _write_to},
}

Functions

This section is empty.

Types

type File

type File struct {
	*os.File
}

func (*File) Call

func (f *File) Call(m *nitro.VM, args []nitro.Value, nRet int) ([]nitro.Value, error)

func (*File) GetNativeReader

func (f *File) GetNativeReader() io.Reader

func (*File) GetNativeWriter

func (f *File) GetNativeWriter() io.Writer

func (*File) Index

func (f *File) Index(key nitro.Value) (nitro.Value, error)

func (*File) IndexRef

func (f *File) IndexRef(key nitro.Value) (nitro.ValueRef, error)

func (*File) String

func (f *File) String() string

func (*File) Traits

func (f *File) Traits() vm.Traits

func (*File) Type

func (f *File) Type() string

type OpenOptions

type OpenOptions struct {
	Read   bool
	Write  bool
	Append bool
	Create bool
	Excl   bool
	Trunc  bool
}

func (*OpenOptions) FromMap

func (m *OpenOptions) FromMap(v *_p2.Object) error

Jump to

Keyboard shortcuts

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