File: mock.toml

package info (click to toggle)
golang-github-knadh-koanf 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 808 kB
  • sloc: sh: 31; makefile: 14
file content (93 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
type = "toml"
orphan = [
  "red",
  "blue",
  "orange"
]
bools = [
  true,
  false,
  true
]
intbools = [
  1.0,
  0.0,
  1.0
]
strbools = [
  "1",
  "t",
  "f"
]
strbool = "1"
time = "2019-01-01"
duration = "3s"
negative_int = -1234

[parent1]
name = "parent1"
id = 1234.0

  [parent1.child1]
  name = "child1"
  type = "toml"

    [parent1.child1.grandchild1]
    ids = [
      1.0,
      2.0,
      3.0
    ]
    on = true

    [parent1.child1.empty]

  [parent1.strmap]
  key1 = "val1"
  key2 = "val2"
  key3 = "val3"

  [parent1.strsmap]
  key1 = [
    "val1",
    "val2",
    "val3"
  ]
  key2 = [
    "val4",
    "val5"
  ]

  [parent1.intmap]
  key1 = 1.0
  key2 = 1.0
  key3 = 1.0

  [parent1.floatmap]
  key1 = 1.1
  key2 = 1.2
  key3 = 1.3

  [parent1.boolmap]
  ok1 = true
  ok2 = true
  notok3 = false

[parent2]
name = "parent2"
id = 5678.0

  [parent2.child2]
  name = "child2"

    [parent2.child2.grandchild2]
    ids = [
      4.0,
      5.0,
      6.0
    ]
    on = true

    [parent2.child2.empty]

[empty]