Last 12 weeks · 5 commits
3 of 6 standards met
Was working with your library for a personal project and was running for ten minutes and popped up a failure. I'm running on the latest commit of : on . I've created a minimal test that reproduces the problem (with, in retrospect, a terrible name). Seems to be a problem with quoted strings containing windows newlines.
Hello, I need my custom method to be able to omit a field completely when it is set to but it does not appear to be possible. It must not return. that is an error, there is no special error value for omitting a field, returning an empty buffer creates an invalid TOML: My type implements the Go 1.24 newly added method but I guess that is something that is not supported in this library. That could be perhaps a solution. Is there a solution? I do not have access to the script that encapsulates the type. Thanks.
Proposal I would like to propose an opt-in mechanism for decoding polymorphic TOML tables based on a type discriminator. For example: could be represented as: With: And: Motivation The important part is that the concrete type can be resolved before decoding the table. Instead of: the decoder can do: This avoids decoding the same data twice and allows the existing TOML decoder to handle all fields normally. The resolver only determines the destination type; the existing decoder remains responsible for decoding the contents. The behavior would be explicitly opt-in through TypeProvider, leaving existing decoding behavior unchanged. I would be interested in feedback on whether this API fits the library and whether there is a preferred way to integrate the type-resolution step into the existing decoder.
Repository: BurntSushi/toml. Description: TOML parser for Golang with reflection. Stars: 5005, Forks: 558. Primary language: Go. Languages: Go (100%). License: MIT. Latest release: v1.6.0 (9mo ago). Open PRs: 7, open issues: 20. Last activity: 1mo ago. Community health: 57%. Top contributors: arp242, BurntSushi, cespare, sqs, kkHAIKE, rjeczalik, ttacon, spf13, sahvx655-wq, martinlindhe and others.