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 helper with one good return and one bad one is not a
4// sentence helper.
5
6func refuse(w int, n int, err error) {
7 jsonError(w, 400, say(n, err))
8}
9
10func say(n int, err error) string {
11 if n > 1 {
12 return "too many boxes"
13 }
14 return err.Error()
15}
16