(L *LState)
| 140 | } |
| 141 | |
| 142 | func 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 | |
| 152 | func osRemove(L *LState) int { |
| 153 | err := os.Remove(L.CheckString(1)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…