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 chain of local aliases longer than the gate reads. Running out
4// of depth is a violation, not an approval.
5
6func chainLiteral(w int) {
7 a1 := "this box has no secrets key"
8 a2 := a1
9 a3 := a2
10 a4 := a3
11 a5 := a4
12 a6 := a5
13 a7 := a6
14 a8 := a7
15 a9 := a8
16 a10 := a9
17 a11 := a10
18 a12 := a11
19 jsonError(w, 400, a12)
20}
21
22func chainError(w int, err error) {
23 b1 := err.Error()
24 b2 := b1
25 b3 := b2
26 b4 := b3
27 b5 := b4
28 b6 := b5
29 b7 := b6
30 b8 := b7
31 b9 := b8
32 b10 := b9
33 b11 := b10
34 b12 := b11
35 jsonError(w, 400, b12)
36}
37