,例子作为我的 gopher-lua 第三方包已经提交到 github, 目前已经支持 http, strings, regexp, ioutil, exec, crypto, json/yaml, colly...L.SetGlobal("time", luar.New(L, &Time{}))
L.SetGlobal("resty", luar.New(L, &Resty{}))
L.SetGlobal("colly...", luar.New(L, &Colly{}))
// more... pls refer to: github.com/vadv/gopher-lua-libs
}
// Http -----...----------------------------------------------------------------------------------------------
type Colly...struct{}
func (c Colly) New() *colly.Collector { return colly.NewCollector() }
// Resty ----------