Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File embeds an os.File and provides an IsClosed method.
func OpenFile ¶
OpenFile opens a file with the given name in the given Lua mode. A finaliser is set on the returned file (via runtime.SetFinalizer) so that it is automatically closed when garbage collected.
func TempFile ¶
TempFile makes a temporary file, which will be removed when closed. A finaliser is set on the returned file (via runtime.SetFinalizer) so that it is automatically closed when garbage collected.
func ValueToFile ¶
ValueToFile turns a Lua value to a *File if possible.
Click to show internal directories.
Click to hide internal directories.