gtranslate/utils.go

12 lines
176 B
Go
Raw Normal View History

2021-01-22 20:42:13 +00:00
package main
import (
"fmt"
"net/http"
)
func writeError(w http.ResponseWriter, status int, err interface{}) {
w.WriteHeader(status)
w.Write([]byte(fmt.Sprintln(err)))
}