ref: b67c4398fcbf66760c38d3f83e180a1c4f1fe426 gtranslate/api.go -rw-r--r-- 686 bytes
api: use fmt.Fprint/Fprintln

Honestly I didn't know it existed at the time of writing gtranslate :)
web, api: terminate request on parse error

When a parser error occurs, the request is not terminated which causes
the HTML page to be dumped after the error message.
Move request handlers out of main.go
Merge api.go into main.go

It would be really painful to provide variables there