MCPcopy Index your code
hub / github.com/Shopify/go-lua / newFile

Function newFile

io.go:37–39  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

35}
36
37func newFile(l *State) *stream {
38 return newStream(l, nil, func(l *State) int { return FileResult(l, toStream(l).f.Close(), "") })
39}
40
41func ioFile(l *State, name string) *os.File {
42 l.Field(RegistryIndex, name)

Callers 2

forceOpenFunction · 0.85
io.goFile · 0.85

Calls 3

newStreamFunction · 0.85
FileResultFunction · 0.85
toStreamFunction · 0.85

Tested by

no test coverage detected