转译器

时间:2021-02-10 07:39:42
【文件属性】:
文件名称:转译器
文件大小:1.38MB
文件格式:ZIP
更新时间:2021-02-10 07:39:42
Go 转译器 这是打字稿transpiler使用正式打字编译器API,下运行 。 用法 package main import ( "github.com/yacchi/go-ts-transpiler/transpiler" "io/ioutil" "os" ) func main () { ts , err := transpiler . NewTranspiler () if err != nil { panic ( err ) } f , err := os . Open ( os . Args [ 1 ]) if err != nil { panic ( err ) } else { defer f . Close () } src , err := ioutil . ReadAll ( f ) if err != nil { panic ( e
【文件预览】:
go-ts-transpiler-master
----goja_loader()
--------goja.go(2KB)
----package.json(219B)
----assets()
--------filesystem.go(2.67MB)
--------node_modules()
--------assets-life.go(11KB)
----LICENSE(11KB)
----examples()
--------transpile()
--------goja_loader()
----.gitignore(45B)
----Makefile(563B)
----go.sum(1KB)
----README.md(2KB)
----transpiler()
--------transpiler.go(2KB)
----yarn.lock(2KB)
----go.mod(378B)

网友评论