gtranslate/utils.go

12 lines
162 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)
fmt.Fprintln(w, err)
2021-01-22 20:42:13 +00:00
}