File: marshal-teststruct.toml

package info (click to toggle)
golang-github-naoina-toml 0.1.1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 416 kB
  • sloc: makefile: 7
file content (115 lines) | stat: -rw-r--r-- 1,859 bytes parent folder | download | duplicates (2)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[table]
key = "value"

[table.subtable]
key = "another value"

[table.inline.name]
first = "Tom"
last = "Preston-Werner"

[table.inline.point]
x = 1
y = 2

[string.basic]
basic = "I'm a string. \"You can quote me\". Name\tJosé\nLocation\tSF."

[string.multiline]
key1 = "One\nTwo"
key2 = "One\nTwo"
key3 = "One\nTwo"

[string.multiline.continued]
key1 = "The quick brown fox jumps over the lazy dog."
key2 = "The quick brown fox jumps over the lazy dog."
key3 = "The quick brown fox jumps over the lazy dog."

[string.literal]
winpath = "C:\\Users\\nodejs\\templates"
winpath2 = "\\\\ServerX\\admin$\\system32\\"
quoted = "Tom \"Dubs\" Preston-Werner"
regex = "<\\i\\c*\\s*>"

[string.literal.multiline]
regex2 = "I [dw]on't need \\d{2} apples"
lines = "The first newline is\ntrimmed in raw strings.\n   All other whitespace\n   is preserved.\n"

[integer]
key1 = 99
key2 = 42
key3 = 0
key4 = -17

[integer.underscores]
key1 = 1000
key2 = 5349221
key3 = 12345

[float.fractional]
key1 = 1e+00
key2 = 3.1415e+00
key3 = -1e-02

[float.exponent]
key1 = 5e+22
key2 = 1e+06
key3 = -2e-02

[float.both]
key = 6.626e-34

[float.underscores]
key1 = 9.224617445991227e+06
key2 = 1e+100

[boolean]
true = true
false = false

[datetime]
key1 = 1979-05-27T07:32:00Z
key2 = 1979-05-27T00:32:00-07:00
key3 = 1979-05-27T00:32:00.999999-07:00

[array]
key1 = [1, 2, 3]
key2 = ["red", "yellow", "green"]
key3 = [[1, 2], [3, 4, 5]]
key4 = [[1, 2], ["a", "b", "c"]]
key5 = [1, 2, 3]
key6 = [1, 2]

[[products]]
name = "Hammer"
sku = 738594937

[[products]]

[[products]]
name = "Nail"
sku = 284758393
color = "gray"

[[fruit]]
name = "apple"

[fruit.physical]
color = "red"
shape = "round"

[[fruit.variety]]
name = "red delicious"

[[fruit.variety]]
name = "granny smith"

[[fruit]]
name = "banana"

[fruit.physical]
color = ""
shape = ""

[[fruit.variety]]
name = "plantain"