diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index 7e49a239..daead980 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -3,8 +3,8 @@ package main import "fmt" const VERSION = "1.0.15" -const REVISION = "2861a46387df90bcadae7651dc6e0d2db8ab0148+1" -const NUMBER = 152 +const REVISION = "6f59a908da45484b2104d51e2fa56d83d3bf65a5+1" +const NUMBER = 153 func getRevision() string { return fmt.Sprintf("%s %s BUILD_%d", VERSION, REVISION, NUMBER) diff --git a/patch/ctxt/ctx.go b/patch/ctxt/ctx.go index f9ed3ea4..b3c1cf0e 100644 --- a/patch/ctxt/ctx.go +++ b/patch/ctxt/ctx.go @@ -50,7 +50,12 @@ var stdWhitelist = map[string]map[string]bool{ // }, "os": map[string]bool{ // starts with Get - "OpenFile": true, + "OpenFile": true, + "ReadFile": true, + "WriteFile": true, + }, + "io/ioutil": map[string]bool{ + "ReadAll": true, }, "time": map[string]bool{ "Now": true, diff --git a/runtime/core/version.go b/runtime/core/version.go index 0334f3f2..5efd6c04 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.15" -const REVISION = "2861a46387df90bcadae7651dc6e0d2db8ab0148+1" -const NUMBER = 152 +const REVISION = "6f59a908da45484b2104d51e2fa56d83d3bf65a5+1" +const NUMBER = 153 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/runtime/test/func_list/func_list_stdlib_test.go b/runtime/test/func_list/func_list_stdlib_test.go index 0fadfde5..4c0f03b5 100644 --- a/runtime/test/func_list/func_list_stdlib_test.go +++ b/runtime/test/func_list/func_list_stdlib_test.go @@ -21,9 +21,14 @@ func TestListStdlib(t *testing.T) { stdPkgs := map[string]bool{ // os - "os.Getenv": true, - "os.Getwd": true, - "os.OpenFile": true, + "os.Getenv": true, + "os.Getwd": true, + "os.OpenFile": true, + "os.ReadFile": true, + "os.WriteFile": true, + + // io/ioutl + "io/ioutil.ReadAll": true, // time "time.Now": true,