aicra/util.go

16 lines
284 B
Go
Raw Permalink Normal View History

package aicra
import (
2019-04-30 22:02:28 +00:00
"log"
"net/http"
2019-04-30 22:02:28 +00:00
"git.xdrm.io/go/aicra/api"
)
var handledMethods = []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete}
// Prints an error as HTTP response
func logError(res *api.Response) {
log.Printf("[http.fail] %v\n", res)
}