From c80b23c93dac7a67ac253ecee4d8db9c16aa5c42 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sun, 2 Apr 2023 01:55:53 +0200 Subject: [PATCH] Ultimo commit pre-talk --- slides.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slides.md b/slides.md index 8fca6fb..a13e654 100644 --- a/slides.md +++ b/slides.md @@ -541,9 +541,9 @@ func DecodeAndValidateJSON(r *http.Request, target Validator) error { return nil } +``` -... - +```go var foo FooRequest if err := DecodeAndValidateJSON(r, &foo); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError)