{"id":50743047,"url":"https://github.com/tnfssc/goon","last_synced_at":"2026-06-10T18:31:14.536Z","repository":{"id":325162713,"uuid":"1100091283","full_name":"tnfssc/goon","owner":"tnfssc","description":"Go implementation of the TOON data format.","archived":false,"fork":false,"pushed_at":"2025-11-29T16:30:50.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-11-30T19:43:00.140Z","etag":null,"topics":["json","llm","toon","yaml"],"latest_commit_sha":null,"homepage":"https://github.com/tnfssc/goon","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/tnfssc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-19T20:36:48.000Z","updated_at":"2025-11-29T00:47:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tnfssc/goon","commit_stats":null,"previous_names":["tnfssc/goon"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tnfssc/goon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfssc%2Fgoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfssc%2Fgoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfssc%2Fgoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfssc%2Fgoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnfssc","download_url":"https://codeload.github.com/tnfssc/goon/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfssc%2Fgoon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["json","llm","toon","yaml"],"created_at":"2026-06-10T18:31:13.765Z","updated_at":"2026-06-10T18:31:14.529Z","avatar_url":"https://github.com/tnfssc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goon\n\n\u003e **Go** implementation of the **TOON** data format.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/tnfssc/goon.svg)](https://pkg.go.dev/github.com/tnfssc/goon)\n[![Go Report Card](https://goreportcard.com/badge/github.com/tnfssc/goon)](https://goreportcard.com/report/github.com/tnfssc/goon)\n[![License](https://img.shields.io/github/license/tnfssc/goon)](LICENSE.md)\n\n**goon** is a high-performance, strictly compliant Go library and CLI for parsing and generating [TOON](https://github.com/toon-format/spec) (The Object-Oriented Notation) data.\n\n## Features\n\n- 🚀 **Fast \u0026 Efficient**: Built with performance in mind using a custom scanner and recursive descent parser.\n- 🔄 **Marshal/Unmarshal**: Direct conversion between Go structs and TOON format with struct tag support (like `encoding/json`).\n- 🔒 **Strict Mode**: Optional strict validation to ensure your TOON files are perfectly formatted (no tabs, correct indentation).\n- 🛠️ **CLI Tools**: Includes `goon encode` and `goon decode` for easy integration into existing workflows.\n- 📦 **Zero Dependencies**: The core library has no external dependencies.\n\n## Installation\n\n### Quick Install (Script)\n\n**Linux \u0026 macOS**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/tnfssc/goon/develop/scripts/install.sh | sh\n```\n\n**Windows (PowerShell)**\n\n```bash\nirm https://raw.githubusercontent.com/tnfssc/goon/develop/scripts/install.ps1 | iex\n```\n\n### Manual Installation\n\n#### Library\n\nTo use Goon in your Go project:\n\n```bash\ngo get github.com/tnfssc/goon\n```\n\n#### CLI Tools\n\nTo install the command-line tool:\n\n```bash\ngo install github.com/tnfssc/goon/cmd/goon@latest\n```\n\n## Usage\n\n### Library\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/tnfssc/goon/pkg/toon\"\n)\n\ntype Config struct {\n\tName     string   `toon:\"name\"`\n\tVersion  string   `toon:\"version\"`\n\tFeatures []string `toon:\"features\"`\n}\n\nfunc main() {\n\t// Marshal Go struct to TOON (like json.Marshal)\n\tconfig := Config{\n\t\tName:     \"MyApp\",\n\t\tVersion:  \"1.0.0\",\n\t\tFeatures: []string{\"fast\", \"reliable\", \"simple\"},\n\t}\n\n\ttoonData, err := toon.Marshal(config, toon.EncodeOptions{IndentSize: 2})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(string(toonData))\n\n\t// Unmarshal TOON to Go struct (like json.Unmarshal)\n\tvar decoded Config\n\terr = toon.Unmarshal(toonData, \u0026decoded, toon.DecodeOptions{IndentSize: 2})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"Decoded: %+v\\n\", decoded)\n}\n```\n\n### CLI\n\nConvert JSON to TOON:\n\n```bash\ngoon encode input.json \u003e output.toon\n```\n\nConvert TOON back to JSON:\n\n```bash\ngoon decode input.toon \u003e output.json\n```\n\n**Pipe from stdin:**\n\n```bash\n# JSON to TOON\ncat data.json | goon encode \u003e data.toon\n\n# TOON to JSON\ncat config.toon | goon decode \u003e config.json\n\n# Chain with other tools\ncurl https://api.example.com/data.json | goon encode \u003e api-data.toon\n```\n\n## TOON Syntax Support\n\nGoon supports the full TOON specification, including:\n\n- **Key-Value Pairs**: Simple `key: value` syntax.\n- **Nested Objects**: Indentation-based hierarchy.\n- **Arrays**:\n  - List format: `key: [length|]` followed by `- item` lines.\n  - _Coming Soon_: Inline arrays and tabular arrays.\n- **Primitives**: Strings, numbers, booleans, and null.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnfssc%2Fgoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnfssc%2Fgoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnfssc%2Fgoon/lists"}