{"id":22116309,"url":"https://github.com/jmid/nano-go","last_synced_at":"2026-05-06T05:33:32.812Z","repository":{"id":82291581,"uuid":"89283777","full_name":"jmid/nano-go","owner":"jmid","description":"A static analysis of the network communication of programs in a synchronous subset of Go","archived":false,"fork":false,"pushed_at":"2018-07-06T07:15:37.000Z","size":1723,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T11:27:25.075Z","etag":null,"topics":["golang","prototype","static-analysis"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-24T20:23:53.000Z","updated_at":"2020-11-02T12:30:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc0e24cc-b77f-4672-8a87-a095918d3121","html_url":"https://github.com/jmid/nano-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fnano-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fnano-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fnano-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fnano-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmid","download_url":"https://codeload.github.com/jmid/nano-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217790,"owners_count":20579297,"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","prototype","static-analysis"],"created_at":"2024-12-01T12:26:37.483Z","updated_at":"2026-05-06T05:33:27.766Z","avatar_url":"https://github.com/jmid.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Static analysis prototype for nano-go, a small subset of the full Go\nprogramming language.  The analysis infers the communication behaviour\nand content of integer Go programs without running them.\n\nA prototype interface is available here: https://jmid.github.io/nano-go/\n\nThe prototype can run purely client side in the browser thanks to both [CodeMirror](https://github.com/codemirror/CodeMirror) and [js_of_ocaml](http://ocsigen.org/js_of_ocaml/).\n\nWhen the code is edited the prototype runs in the background (sans webworkers, sorry)\nand marks the following two categories with a warning:\n - provably failing reads and writes\n - provably dead code\n\nAlternatively it can be run from the command line. Building from scratch requires OCaml.\n\nCurrently we support only the following subset of Go:\n\n           e ::= i | ( e ) | x | - e\n               | e + e | e - e | e * e | e % e\n           b ::= true | false | ! b | ( b )\n               | e == e | e \u003c= e | e \u003c e | b \u0026\u0026 b\n    recvstmt ::= x = \u003c- ch | \u003c- ch\n    sendstmt ::= ch \u003c- e\n        stmt ::= x = e\n               | recvstmt\n               | sendstmt\n               | if b block else block\n               | for [test] block\n               | select { selcase* }\n               | print(e)\n       stmts ::= stmt [;]\n               | stmt ; stmts\n               | { stmts }\n       block ::= { stmts } | {}\n     selcase ::= case recvstmt : [stmts]\n               | case sendstmt : [stmts]\n      chdecl ::= x := make(chan int)\n        func ::= go func() { [body] } ()\n        body ::= var x int [;] body\n               | stmts\n        prog ::= package main\n                 func main() { chdecl+ func+ body }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmid%2Fnano-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmid%2Fnano-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmid%2Fnano-go/lists"}