github.com/pavlo67/common@v0.5.3/common/server_http/errors.go (about)

     1  package server_http
     2  
     3  import (
     4  	"fmt"
     5  	"net/http"
     6  )
     7  
     8  func On(req *http.Request) string {
     9  	if req == nil {
    10  		return ""
    11  	}
    12  	return fmt.Sprintf("ERROR on %s %s: ", req.Method, req.URL)
    13  }