{"id":16603786,"url":"https://github.com/visualfc/funcval","last_synced_at":"2026-04-18T18:32:09.859Z","repository":{"id":42053815,"uuid":"481515191","full_name":"visualfc/funcval","owner":"visualfc","description":"golang  runtime funcval extract","archived":false,"fork":false,"pushed_at":"2023-08-01T14:28:33.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-17T09:47:25.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/visualfc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-14T07:51:49.000Z","updated_at":"2024-05-29T22:50:37.000Z","dependencies_parsed_at":"2024-11-16T16:40:54.821Z","dependency_job_id":null,"html_url":"https://github.com/visualfc/funcval","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Ffuncval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Ffuncval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Ffuncval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Ffuncval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visualfc","download_url":"https://codeload.github.com/visualfc/funcval/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242729460,"owners_count":20175945,"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":[],"created_at":"2024-10-12T00:52:52.736Z","updated_at":"2025-12-05T00:03:19.985Z","avatar_url":"https://github.com/visualfc.png","language":"Go","readme":"# funcval\ngolang runtime funcval extract\n\n[![Go1.14](https://github.com/visualfc/funcval/workflows/Go1.14/badge.svg)](https://github.com/visualfc/funcval/actions/workflows/go114.yml)\n[![Go1.15](https://github.com/visualfc/funcval/workflows/Go1.15/badge.svg)](https://github.com/visualfc/funcval/actions/workflows/go115.yml)\n[![Go1.16](https://github.com/visualfc/funcval/workflows/Go1.16/badge.svg)](https://github.com/visualfc/funcval/actions/workflows/go116.yml)\n[![Go1.17](https://github.com/visualfc/funcval/workflows/Go1.17/badge.svg)](https://github.com/visualfc/funcval/actions/workflows/go117.yml)\n[![Go1.18](https://github.com/visualfc/funcval/workflows/Go1.18/badge.svg)](https://github.com/visualfc/funcval/actions/workflows/go118.yml)\n\n### extract closure env variable\n\n_func Get(fn interface{}) (fv *FuncVal, makefunc int)_\n\n```\npackage main\n\nimport (\n\t\"unsafe\"\n\n\t\"github.com/visualfc/funcval\"\n)\n\nfunc main() {\n\ta := 1\n\tb := \"hello\"\n\tc := 10\n\tfn := func() {\n\t\tprintln(a, b, c)\n\t}\n\tc = 20\n\tfv, _ := funcval.Get(fn)\n\ttype closure struct {\n\t\tfuncval.FuncVal\n\t\ta int\n\t\tb string\n\t\tc *int\n\t}\n\tenv := (*closure)(unsafe.Pointer(fv))\n\tprintln(env.a, env.b, *env.c)\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualfc%2Ffuncval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisualfc%2Ffuncval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualfc%2Ffuncval/lists"}