- Go 78%
- JavaScript 22%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The module path is unchanged and the public proxy is not configured yet. eso/ is the local wire-format reference. |
||
| .github/workflows | ||
| .memory-bank | ||
| .vscode | ||
| cmd | ||
| docs | ||
| eso | ||
| pkg | ||
| testdata | ||
| .gitignore | ||
| .golangci.yml | ||
| .markdownlint-cli2.jsonc | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| llms.txt | ||
| main.go | ||
| README.md | ||
| SECURITY.md | ||
GMS ESON
GMS ESON is a Go library and command line tool for Honey ESON 1.1 wire format specification for use with tooling for AI and ML endeavours. It reads and writes the same documents as the JavaScript tools in Green-PT/honey-for-devs and in Green-PT/honey-eson. Taking the principle functionality for encode, decode and lint actions from the reference implementation to the bring them together with the crush, stash and retrieve actions from the honey-for-devs variant.
Builds and tests need Go 1.27 or later or using GOEXPERIMENT=jsonv2 with Go 1.26. The library uses encoding/json/v2 and encoding/json/jsontext, which became the default json library with Go 1.27 and later, however using that experiment it is possible to use with older Go 1.26 releases.
Build
export GOEXPERIMENT=jsonv2
go test ./...
go build -o gms-eson .
go run . with no arguments exits 1 and prints a one-line usage message. The commands are described in docs/cli.md. Library use is in docs/library.md.
Documents
The wire grammar is ESON 1.1. The header line is !eson/1. The local copy of the wire format is eso/SPEC.md. The tests check testdata/vectors.json, which is the conformance set from the JavaScript reference.
Compatibility
Canonical encode of the valid vectors is byte for byte with the JavaScript encoder. Decode accepts the valid vectors and the decode-only vectors, and it rejects every invalid vector. A Go map[string]any is sorted by key before it is written. JSON text and *value.Object keep insertion order, which is the order the JavaScript tools use. Matching the Python tools is not a goal.
Do not put authentication, payment, or delete material in an ESON document. The linter treats those field names as wire-profile failures when they appear in ESON or in a columnar JSON block. See SECURITY.md for how to report a vulnerability in this repository.
ESON Specification
For reference the vendor'd implementation from the eso folder within the Green-PT/honey-for-devs plugin has been provided in the eso folder. This provides their reference implementation of the encode, decode and crush. With the eso/README.md and eso/SPEC.md providing the core wire format specification.
Copyright and Licence
See the licence here for rtlabs.tech/gms-eson package. The license associated with the upstream reference code and specification can be found in the eso/LICENSE.
Go Code and related Documentation Copyright © 1994-2026, Stephen Kapp and Reaper Technologies Limited. All Rights Reserved.