Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
44 lines (42 sloc) 1.14 KB
package src
import (
var Packages = map[string]map[string]starlark.Value{
"io": map[string]starlark.Value{
"Reader": io.Reader,
"ReadCloser": io.ReadCloser,
"io/ioutil": map[string]starlark.Value{
"NopCloser": ioutil.NopCloser,
"ReadAll": ioutil.ReadAll,
"net/http": map[string]starlark.Value{
"Get": http.Get,
"Response": http.Response,
"ResponseWriter": http.ResponseWriter,
"Handler": http.Handler,
"ListenAndServe": http.ListenAndServe,
"HandleFunc": http.HandleFunc,
"sync": map[string]starlark.Value{
"WaitGroup": sync.WaitGroup,
"time": map[string]starlark.Value{
"Sleep": time.Sleep,
"Duration": time.Duration,
"Nanosecond": time.Nanosecond,
"Microsecond": time.Microsecond,
"Millisecond": time.Millisecond,
"Second": time.Second,
"Minute": time.Minute,
"Hour": time.Hour,
"Now": time.Now,
"Time": time.Time,