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. Values the gate cannot read.
4
5func methodResult(w int, s server) {
6 jsonError(w, 400, s.render(1))
7}
8
9func indexed(w int, names []string) {
10 jsonError(w, 400, names[0])
11}
12
13func bare(a, b string) Check {
14 return Check{Reason: a + b}
15}
16
17func dynamicFormat(w int, format string) {
18 jsonError(w, 400, fmt.Sprintf(format, 1))
19}
20
21func field(w int, r record) {
22 jsonError(w, 400, r.Message)
23}
24