{"id":37202839,"url":"https://github.com/koss-null/tomyaml","last_synced_at":"2026-01-14T23:23:47.642Z","repository":{"id":215012034,"uuid":"737897351","full_name":"koss-null/tomyaml","owner":"koss-null","description":"Simple golang TOML and YAML parser","archived":false,"fork":false,"pushed_at":"2025-01-03T20:26:03.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T21:26:49.670Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koss-null.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T22:15:01.000Z","updated_at":"2024-01-03T10:07:57.000Z","dependencies_parsed_at":"2024-01-02T00:50:52.061Z","dependency_job_id":"105e1809-bfe6-4a0c-b6aa-c7e41d8863cf","html_url":"https://github.com/koss-null/tomyaml","commit_stats":null,"previous_names":["koss-null/tomyaml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koss-null/tomyaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koss-null%2Ftomyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koss-null%2Ftomyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koss-null%2Ftomyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koss-null%2Ftomyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koss-null","download_url":"https://codeload.github.com/koss-null/tomyaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koss-null%2Ftomyaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T23:23:46.840Z","updated_at":"2026-01-14T23:23:47.586Z","avatar_url":"https://github.com/koss-null.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TomYAML\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/koss-null/tomyaml)](https://goreportcard.com/report/github.com/koss-null/tomyaml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\nTomYAML is a Golang library designed to parse TOML and YAML files into Golang structures. Presently, only TOML parsing is implemented, while YAML parsing is currently in progress and will be available soon.\n\n## Supported features\n\n### TOML\n\n - `Parse(io.Reader) TOML` - Parses a TOML file from an `io.Reader` into a `TOML` structure.\n - `TOML.Key() string` - Returns the object key of the TOML from the root.\n - `TOML.GetObj(key string) TOML` - Retrieves the `TOML` object by the specified key from the root (e.g., foo.bar.baz).\n - `TOML.String() string` - Returns the TOML file as a string, constructed from a `TOML` structure.\n *Currently parsing supports:*\n - comments with `//` and `#`\n - key-value separators with `:`, `=`\n *Types:*\n - `int`, `float`\n - single-line `string`,\n - `boolean` (*true*|*True*|*TRUE*)\n - `datetime`\n *Also complex object fields and relations are parsed correctley.*\n\n## Installation\n\nTo install Tomyaml, use `go get`:\n\n```bash\ngo get github.com/koss-null/tomyaml\n```\n\nAlternatively, import it into your project and run: \n```bash\ngo mod tidy\n```\n\n## Usage\n\nHere is a basic example: \n\n```go\npackage main\n\nimport \"github.com/koss-null/tomyaml\"\n\nfunc main() {\n    var err error\n\n    var ty tomyaml.TomYaml\n    if ty, err = tomyaml.Parse(\"path/to/your/file.toml\"); err != nil {\n        panic(err)\n    }\n    \n    // TBD\n}\n```\n\nThis will read TOML file into ty structure. \n\n## Coming Soon\n\nSupport for YAML parsing is currently under development and is expected to be implemented soon. Stay tuned for updates.\n\n## Fun Fact\nThe name TomYamL is inspired by the delicious [Tom Yum](https://en.wikipedia.org/wiki/Tom_yum) soup from Thailand.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE.md file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoss-null%2Ftomyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoss-null%2Ftomyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoss-null%2Ftomyaml/lists"}