{"id":17438612,"url":"https://github.com/blixt/go-brainfuck","last_synced_at":"2025-12-30T08:19:55.461Z","repository":{"id":137380277,"uuid":"5240755","full_name":"blixt/go-brainfuck","owner":"blixt","description":"This is a simple module to run or debug Brainfuck code.","archived":false,"fork":false,"pushed_at":"2012-07-31T03:05:48.000Z","size":96,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-24T06:55:39.295Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blixt.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}},"created_at":"2012-07-31T02:47:48.000Z","updated_at":"2023-05-19T18:47:24.000Z","dependencies_parsed_at":"2023-03-11T02:15:13.038Z","dependency_job_id":null,"html_url":"https://github.com/blixt/go-brainfuck","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/blixt%2Fgo-brainfuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fgo-brainfuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fgo-brainfuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fgo-brainfuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blixt","download_url":"https://codeload.github.com/blixt/go-brainfuck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241371375,"owners_count":19952086,"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-17T12:38:31.062Z","updated_at":"2025-12-30T08:19:55.409Z","avatar_url":"https://github.com/blixt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Brainfuck\n\nThis is a simple module to run or debug Brainfuck code.\n\n## Installation\n\n    go get github.com/blixt/go-brainfuck/brainfuck\n\n## Examples\n\n### Hello World\n\n    package main\n    \n    import (\n    \t\"github.com/blixt/go-brainfuck/brainfuck\"\n    \t\"os\"\n    )\n    \n    func main() {\n    \t// Print \"Hello\" and exit.\n    \tbrainfuck.Run(\"++++++++++[\u003e+++++++\u003e++++++++++\u003e+++\u003e+\u003c\u003c\u003c\u003c-]\u003e++.\u003e+.+++++++..+++.\", \"\", os.Stdout)\n    }\n\n### More advanced \u0026 debugging\n\n    package main\n    \n    import (\n    \t\"fmt\"\n    \t\"github.com/blixt/go-brainfuck/brainfuck\"\n    \t\"io/ioutil\"\n    )\n    \n    func main() {\n    \tbf := \u0026brainfuck.State{\n    \t\tCode:   \"++++++++++[\u003e+++++++\u003e++++++++++\u003e+++\u003e+\u003c\u003c\u003c\u003c-]\u003e++.\u003e+.+++++++..+++.\",\n    \t\tMemory: make([]byte, 100),\n    \t\tOutput: ioutil.Discard, // Ignore output\n    \t\tDebug:  true,\n    \t}\n    \n    \t// Do 100 iterations.\n    \tfor i := 0; i \u003c 100; i++ {\n    \t\tbf.Step()\n    \t}\n    \n    \t// Print the current memory.\n    \tfmt.Println(bf.Memory)\n    }\n\n## Notes\n\nIn case of an EOF read from input, the `,` operator will be a no-op, unlike\nsome brainfuck implementations that will set the current value to 0 or -1.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblixt%2Fgo-brainfuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblixt%2Fgo-brainfuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblixt%2Fgo-brainfuck/lists"}