File: structs.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 (26 lines) | stat: -rw-r--r-- 324 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
-- in.cue --
import "struct"

v: {a: struct.MaxFields(2) & {}}.a
-- out/eval/stats --
Leaks:  2
Freed:  2
Reused: 0
Allocs: 4
Retain: 2

Unifications: 4
Conjuncts:    7
Disjuncts:    4
-- out/eval --
(struct){
  v: (struct){
  }
}
-- out/compile --
--- in.cue
{
  v: {
    a: (〈import;struct〉.MaxFields(2) & {})
  }.a
}