github BurntSushi/toml v1.3.0

latest releases: v1.4.0, v1.3.2, v1.3.1...
17 months ago

New features:

  • Support upcoming TOML 1.1

    While it looks like TOML 1.1 is mostly stable and I don't expect any further major changes, there are NO compatibility guarantees as it is NOT yet released and anything can still change.

    To use it, set the BURNTSUSHI_TOML_110 environment variable to any value, which can be done either with os.SetEnv() or by the user running a program.

    A full list is changes is available in the TOML ChangeLog; the two most notable ones are that newlines and trailing commas are now allowed in inline tables, and Unicode in bare keys can now be used – this is now a valid document:

    lëttërs = {
      ä = "a with diaeresis",
      è = "e with accent grave",
    }
    
  • Allow MarshalTOML and MarshalText to be used on the document type itself, instead of only fields (#383).

Bufixes:

  • \ escapes at the end of line weren't processed correctly in multiline strings (#372).

  • Read over UTF-8 BOM (#381).

  • omitempty struct tag did not work for pointer values (#371).

  • Fix encoding anonymous structs on 32bit systems (#374).

Don't miss a new toml release

NewReleases is sending notifications on new releases.