From 9ef6ac30cbcdaa676760b77855f76a315d4e97df Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Sun, 2 Oct 2016 15:07:52 +0300 Subject: [PATCH] Fix padding on readme --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ffa67747..57b9c975 100644 --- a/README.md +++ b/README.md @@ -252,30 +252,30 @@ func save(ctx *iris.Context) { // Get avatar avatar, err := ctx.FormFile("avatar") if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } // Source src, err := avatar.Open() if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } defer src.Close() // Destination dst, err := os.Create(avatar.Filename) if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } defer dst.Close() // Copy if _, err = io.Copy(dst, src); err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } ctx.HTML(iris.StatusOK, "Thanks!") @@ -297,8 +297,8 @@ type User struct { iris.Post("/users", func(ctx *iris.Context) { u := new(User) if err := ctx.ReadJSON(u); err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } ctx.JSON(iris.StatusCreated, u) // or