File: json.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (61 lines) | stat: -rw-r--r-- 654 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
#noformat
Issue #721

-- in.cue --
// allow front-style commas
a
: { "key": "value"
, "key2"
: "value2"
}

, b: [
    0
,   1
,       2
        ,3,
    4

    , 5
]
-- out/compile --
--- in.cue
{
  a: {
    key: "value"
    key2: "value2"
  }
  b: [
    0,
    1,
    2,
    3,
    4,
    5,
  ]
}
-- out/eval/stats --
Leaks:  0
Freed:  11
Reused: 8
Allocs: 3
Retain: 0

Unifications: 11
Conjuncts:    11
Disjuncts:    11
-- out/eval --
(struct){
  a: (struct){
    key: (string){ "value" }
    key2: (string){ "value2" }
  }
  b: (#list){
    0: (int){ 0 }
    1: (int){ 1 }
    2: (int){ 2 }
    3: (int){ 3 }
    4: (int){ 4 }
    5: (int){ 5 }
  }
}