MCPcopy Index your code
hub / github.com/yuin/gopher-lua / osGetEnv

Function osGetEnv

oslib.go:142–150  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

140}
141
142func osGetEnv(L *LState) int {
143 v := os.Getenv(L.CheckString(1))
144 if len(v) == 0 {
145 L.Push(LNil)
146 } else {
147 L.Push(LString(v))
148 }
149 return 1
150}
151
152func osRemove(L *LState) int {
153 err := os.Remove(L.CheckString(1))

Callers

nothing calls this directly

Calls 3

LStringTypeAlias · 0.85
CheckStringMethod · 0.80
PushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…