The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
hanxiV2EX

求推荐一个 go 里运行 js 的方案

  •  
  •   hanxiV2EX ·
    hanxi · Mar 28 via Android · 3637 views
    This topic created in 223 days ago, the information mentioned may be changed or developed.

    目前试用了 goja ,很好用,就是语法不全,新一点语法的跑不了。

    8 replies  •  2026-03-29 19:35:51 +08:00
    yulon
    yulon
    Mar 28
    2
    在乎资源 quickjs ,不在乎资源直接起一个 webview
    wbrobot
    wbrobot
    Mar 28
    3
    goja 不是已经完成 ES6 支持了吗?新语法是什么?
    haohello
    haohello
    Mar 28
    4
    pocketbase 里是不是就是使用的 goja 啊
    wbrobot
    wbrobot
    Mar 28
    5
    哦,不好意思,刚才 goja 看了一下 ES2016+只支持 66%
    你试试 https://github.com/fastschema/qjs 这个 ES2016+支持到 93%
    fgwmlhdkkkw
    6
    虽然没做过,但是集成 V8 应该有现成的方案吧。
    crackidz
    crackidz
    Mar 28
    7
    quickjs 一套啊
    hanxiV2EX
    hanxiV2EX
    OP
    Mar 29
    8
    找到了这个 cgo-free 的 quickjs 。 我先试试 https://gitlab.com/cznic/quickjs/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 18:42 · PVG 02:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.