1234567891011121314151617 |
- package packages
- import (
- "io/ioutil"
- "reflect"
- "github.com/mattn/anko/env"
- )
- func init() {
- env.Packages["io/ioutil"] = map[string]reflect.Value{
- "ReadAll": reflect.ValueOf(ioutil.ReadAll),
- "ReadDir": reflect.ValueOf(ioutil.ReadDir),
- "ReadFile": reflect.ValueOf(ioutil.ReadFile),
- "WriteFile": reflect.ValueOf(ioutil.WriteFile),
- }
- }
|