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

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

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

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

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