github BurntSushi/toml v1.1.0

latest releases: v1.4.0, v1.3.2, v1.3.1...
2 years ago

Just a few bugfixes:

  • Skip fields with toml:"-" even when they're unsupported types. Previously something like this would fail to encode due to func being an unsupported type:

    struct {
        Str  string `toml:"str"
        Func func() `toml:"-"`
    }
    
  • Multiline strings can't end with \. This is valid:

    # Valid
    key = """ foo \
    """
    
    # Invalid
    key = """ foo \ """
    
  • Don't quote values in TOMLMarshaler. Previously they would always include quoting (e.g. "value"), while the entire point of this interface is to bypass that.

Don't miss a new toml release

NewReleases is sending notifications on new releases.