code: func DecodeRequest(r *http.Request, v interface{}, ignoreEOF bool) error {
  	if err := json.NewDecoder(r.Body).Decode(v); err != nil {
  		if err == io.EOF && ignoreEOF {
  			return nil
  		}
  		return fmt.Errorf("error decoding request body: %v", err)
  	}
  	return nil
  }
docs: // DecodeRequest json decodes the request body into v, optionally ignoring EOF
  // errors to handle cases where the request body might be empty.