File: append-with-dotted-keys-1.toml

package info (click to toggle)
golang-toml 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,684 kB
  • sloc: makefile: 4
file content (17 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# First a.b.c defines a table: a.b.c = {z=9}
#
# Then we define a.b.c.t = "str" to add a str to the above table, making it:
#
#   a.b.c = {z=9, t="..."}
#
# While this makes sense, logically, it was decided this is not valid TOML as
# it's too confusing/convoluted.
# 
# See: https://github.com/toml-lang/toml/issues/846
#      https://github.com/toml-lang/toml/pull/859

[a.b.c]
  z = 9

[a]
  b.c.t = "Using dotted keys to add to [a.b.c] after explicitly defining it above is not allowed"