carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package fixture
2
3// Not compiled. A Reason read as a placeholder is forwarded when every write
4// to it is a sentence. Here one write runs past the gate's depth limit; the
5// limit is a violation, never a wildcard.
6
7type note struct{ Reason string }
8
9func deep() note {
10 a1 := "this box has no secrets key"
11 a2 := a1
12 a3 := a2
13 a4 := a3
14 a5 := a4
15 a6 := a5
16 a7 := a6
17 a8 := a7
18 a9 := a8
19 a10 := a9
20 a11 := a10
21 a12 := a11
22 return note{Reason: a12}
23}
24
25func placeholder(w int, n note) {
26 jsonError(w, 400, "the copy stopped: "+n.Reason)
27}
28