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. The closure shadows the package function of the same name, so
4// the recorded text of the package function is not what is spoken.
5
6func say() string {
7 return "a recorded sentence"
8}
9
10func refuse(w int, err error) {
11 say := func() string { return err.Error() }
12 jsonError(w, 400, say())
13}
14