{"id":13670116,"url":"https://github.com/mtrempoltsev/gojs","last_synced_at":"2025-04-27T09:31:40.063Z","repository":{"id":57511131,"uuid":"236346681","full_name":"mtrempoltsev/gojs","owner":"mtrempoltsev","description":"JavaScript virtual machine inside Golang (using V8)","archived":false,"fork":false,"pushed_at":"2020-02-22T21:14:19.000Z","size":35,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T09:07:02.275Z","etag":null,"topics":["golang","scripting","v8-javascript-engine"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtrempoltsev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-26T17:16:11.000Z","updated_at":"2022-07-13T07:15:12.000Z","dependencies_parsed_at":"2022-09-26T16:31:08.181Z","dependency_job_id":null,"html_url":"https://github.com/mtrempoltsev/gojs","commit_stats":null,"previous_names":["mtrempoltsev/go-with-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrempoltsev%2Fgojs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrempoltsev%2Fgojs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrempoltsev%2Fgojs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrempoltsev%2Fgojs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtrempoltsev","download_url":"https://codeload.github.com/mtrempoltsev/gojs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224067017,"owners_count":17250098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","scripting","v8-javascript-engine"],"created_at":"2024-08-02T09:00:32.973Z","updated_at":"2024-11-11T07:31:09.402Z","avatar_url":"https://github.com/mtrempoltsev.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go js\nJavaScript virtual machine inside Golang (using V8)\n\nExample of usage:\n\n```go\njs, err := gojs.New(1) // use 1 thread\nif err != nil {\n    fmt.Println(err)\n    return\n}\n\ndefer js.Dispose()\n\nerr = js.Compile(\"my.js\", \"2 + 2\")\nif err != nil {\n    fmt.Println(err)\n    return\n}\n\nres, err := js.Run(\"my.js\")\nif err != nil {\n    fmt.Println(err)\n    return\n}\n\ndefer res.Dispose()\n\nval, err := res.ToInt()\nif err != nil {\n    fmt.Println(err)\n    return\n}\n\nfmt.Printf(\"%T, %d\\n\", val, val) // int64, 4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrempoltsev%2Fgojs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtrempoltsev%2Fgojs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrempoltsev%2Fgojs/lists"}