From 3244fb1566ff806a56d5c97fbf635886599d8e0c Mon Sep 17 00:00:00 2001 From: Reindert Vetter Date: Tue, 22 Sep 2020 22:37:02 +0200 Subject: [PATCH] lanvard/lanvard#56 get content of file from request --- src/controller/homepage.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/controller/homepage.go b/src/controller/homepage.go index 7a05666..afa4d56 100644 --- a/src/controller/homepage.go +++ b/src/controller/homepage.go @@ -1,17 +1,10 @@ package controller import ( - "fmt" "github.com/lanvard/contract/inter" "github.com/lanvard/routing/outcome" ) func Homepage(request inter.Request) inter.Response { - source := request.Source() - err := source.ParseForm() - if err != nil { - panic(err) - } - fmt.Println(source.FormFile("the_key")) return outcome.Html("ok") }