Skip to content
Snippets Groups Projects
Commit 6c408811 authored by Alex Constantin-Gómez's avatar Alex Constantin-Gómez
Browse files

Delete json_helpers.go

parent 0b73e74a
No related branches found
No related tags found
No related merge requests found
package main
import (
"io/ioutil"
"log"
"net/http"
)
func readJsonFromRequest(r *http.Request) []byte {
data, err := ioutil.ReadAll(r.Body)
if err != nil {
log.Println("could not read json from body")
}
return data
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment