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

Function readNumber

io.go:107–115  ·  view source on GitHub ↗
(l *State, f *os.File)

Source from the content-addressed store, hash-verified

105}
106
107func readNumber(l *State, f *os.File) (err error) {
108 var n float64
109 if _, err = fmt.Fscanf(f, "%f", &n); err == nil {
110 l.PushNumber(n)
111 } else {
112 l.PushNil()
113 }
114 return
115}
116
117func read(l *State, f *os.File, argIndex int) int {
118 resultCount := 0

Callers

nothing calls this directly

Calls 2

PushNumberMethod · 0.80
PushNilMethod · 0.80

Tested by

no test coverage detected