~yerinalexey/gtranslate

ref: e1c610caf977a9ae78c050accc268d9ed2995297 gtranslate/api.go -rw-r--r-- 804 bytes
Move writeError to api.go

Web interface now uses error HTML template instead.
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