<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/7eh1lqzjl" -->

---
title: alpkeskin/gotoon: Token-Oriented Object Notation for Go...
description: GoTOON is a Go library implementing Token-Oriented Object Notation (TOON), a compact data serialization format designed to reduce token costs when passing...
canonical: https://daily.dev/posts/7eh1lqzjl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: alpkeskin/gotoon: Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost | daily.dev
og:description: GoTOON is a Go library implementing Token-Oriented Object Notation (TOON), a compact data serialization format designed to reduce token costs when passing...
og:url: https://daily.dev/posts/7eh1lqzjl
og:image: https://api.daily.dev/og/posts/7EH1LQzjl.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# alpkeskin/gotoon: Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost

**[Go Developers](https://daily.dev/sources/golangnuts)** · [@alpkeskin](https://daily.dev/alpkeskin) · 10 upvotes · 0 comments

## Summary

GoTOON is a Go library implementing Token-Oriented Object Notation (TOON), a compact data serialization format designed to reduce token costs when passing structured data to Large Language Models. It achieves 30-60% token reduction compared to JSON by using tabular arrays, minimal syntax, and indentation-based structure while maintaining LLM comprehension. The library provides a Go-idiomatic API with functional options for customization including indent size, delimiters, and length markers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/alpkeskin/gotoon>

---

Tags: [#ai](https://daily.dev/tags/ai), [#golang](https://daily.dev/tags/golang), [#llm](https://daily.dev/tags/llm)

[View this post on daily.dev](https://daily.dev/posts/7eh1lqzjl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/7eh1lqzjl","headline":"alpkeskin/gotoon: Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost","text":"Shared: alpkeskin/gotoon: Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost","url":"https://daily.dev/posts/7eh1lqzjl","datePublished":"2025-11-03T08:21:44.917Z","dateModified":"2025-11-03T08:21:44.918Z","author":{"@type":"Person","name":"Alp Keskin","url":"https://daily.dev/alpkeskin","image":"https://lh3.googleusercontent.com/a/AAcHTtfxINDjC7GvcAfgI5lS_27e-_pVUOtDAdynlb88ELdpGP8=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":130}},"image":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/9nEVBMr2R"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/golangnuts","name":"Go Developers"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Go Developers","item":"https://daily.dev/squads/golangnuts"},{"@type":"ListItem","position":3,"name":"alpkeskin/gotoon: Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost"}]}
```

