forked from goplus/gop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ioutil.go
42 lines (33 loc) · 1002 Bytes
/
ioutil.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package ioutil
import (
"io/ioutil"
qlang "qlang.io/spec"
)
// -----------------------------------------------------------------------------
// Exports is the export table of this module.
//
var Exports = map[string]interface{}{
"_name": "io/ioutil",
"_initSafe": _initSafe,
"discard": ioutil.Discard,
"Discard": ioutil.Discard,
"nopCloser": ioutil.NopCloser,
"readAll": ioutil.ReadAll,
"readDir": ioutil.ReadDir,
"readFile": ioutil.ReadFile,
"tempDir": ioutil.TempDir,
"tempFile": ioutil.TempFile,
"writeFile": ioutil.WriteFile,
"NopCloser": ioutil.NopCloser,
"ReadAll": ioutil.ReadAll,
"ReadDir": ioutil.ReadDir,
"ReadFile": ioutil.ReadFile,
"TempDir": ioutil.TempDir,
"TempFile": ioutil.TempFile,
"WriteFile": ioutil.WriteFile,
}
func _initSafe(mod qlang.Module) {
mod.Disable("readDir", "readFile", "writeFile")
mod.Disable("ReadDir", "ReadFile", "WriteFile")
}
// -----------------------------------------------------------------------------