Skip to content

v1.3.0

Compare
Choose a tag to compare
@arp242 arp242 released this 30 May 15:19
· 42 commits to master since this release
d9b9172

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).