go-phantomjs:Go的phantomjs包装器

时间:2021-05-15 11:22:43
【文件属性】:
文件名称:go-phantomjs:Go的phantomjs包装器
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-15 11:22:43
Go go-phantomjs 一个很小的phantomjs包装器 用法 import ( "github.com/urturn/go-phantomjs" // exported package is phantomjs ) func main () { p , err := phantomjs . Start () if err != nil { panic ( err ) } defer p . Exit () // Don't forget to kill phantomjs at some point. var result interface {} err = p . Run ( "function() { return 2 + 2 }" , & result ) if err != nil { panic ( err ) }
【文件预览】:
go-phantomjs-master
----.gitignore(252B)
----phantom_test.go(2KB)
----data()
--------wrapper.js(3KB)
----bindata.go(8KB)
----LICENSE(1KB)
----README.md(552B)
----phantom.go(3KB)
----phantom_example_test.go(701B)

网友评论