{"id":21331561,"url":"https://github.com/lukechampine/nock","last_synced_at":"2025-07-12T10:30:55.603Z","repository":{"id":57604679,"uuid":"129584544","full_name":"lukechampine/nock","owner":"lukechampine","description":"A simple Nock interpreter in Go","archived":false,"fork":false,"pushed_at":"2020-07-03T23:59:48.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T14:19:26.799Z","etag":null,"topics":["nock","urbit"],"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/lukechampine.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":"2018-04-15T06:47:45.000Z","updated_at":"2022-06-20T16:20:59.000Z","dependencies_parsed_at":"2022-09-13T01:33:23.947Z","dependency_job_id":null,"html_url":"https://github.com/lukechampine/nock","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/lukechampine%2Fnock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fnock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fnock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fnock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechampine","download_url":"https://codeload.github.com/lukechampine/nock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225814912,"owners_count":17528295,"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":["nock","urbit"],"created_at":"2024-11-21T22:42:25.257Z","updated_at":"2024-11-21T22:42:25.979Z","avatar_url":"https://github.com/lukechampine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"nock\n-----\n\n[![GoDoc](https://godoc.org/github.com/lukechampine/nock?status.svg)](https://godoc.org/github.com/lukechampine/nock)\n[![Go Report Card](http://goreportcard.com/badge/github.com/lukechampine/nock)](https://goreportcard.com/report/github.com/lukechampine/nock)\n\n```\ngo get github.com/lukechampine/nock\n```\n\n`nock` implements a simple Nock interpreter, according the spec available at\nhttps://urbit.org/docs/nock/definition.\n\nThis interpreter assumes that its input is well-formed, and does not\nsupport atoms larger than a machine `int`.\n\n### Example ###\n\n```go\ndecrement := nock.Parse(`[42 [8 [1 0] 8 [1 6 [5 [0 7] 4 0 6]\n            [0 6] 9 2 [0 2] [4 0 6] 0 7] 9 2 0 1]]`)\nprogram := nock.Cell(nock.Atom(42), decrement)\nresult := nock.Nock(program)\nprintln(result) // 41\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fnock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechampine%2Fnock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fnock/lists"}