From e1d7a287d5d6bb64e055a2beebb59242987ad5c1 Mon Sep 17 00:00:00 2001 From: EwenQuim Date: Fri, 20 Dec 2024 19:30:03 +0100 Subject: [PATCH] Removes already declared methods from CommonContext --- extra/fuegogin/context.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/extra/fuegogin/context.go b/extra/fuegogin/context.go index 15d15f62..40a2ee3d 100644 --- a/extra/fuegogin/context.go +++ b/extra/fuegogin/context.go @@ -3,7 +3,6 @@ package fuegogin import ( "context" "net/http" - "net/url" "github.com/gin-gonic/gin" @@ -48,34 +47,6 @@ func (c ginContext[B]) PathParam(name string) string { return c.ginCtx.Param(name) } -func (c ginContext[B]) QueryParam(name string) string { - return c.ginCtx.Query(name) -} - -func (c ginContext[B]) QueryParamArr(name string) []string { - panic("unimplemented") -} - -func (c ginContext[B]) QueryParamBool(name string) bool { - panic("unimplemented") -} - -func (c ginContext[B]) QueryParamBoolErr(name string) (bool, error) { - panic("unimplemented") -} - -func (c ginContext[B]) QueryParamInt(name string) int { - panic("unimplemented") -} - -func (c ginContext[B]) QueryParamIntErr(name string) (int, error) { - panic("unimplemented") -} - -func (c ginContext[B]) QueryParams() url.Values { - return c.ginCtx.Request.URL.Query() -} - func (c ginContext[B]) MainLang() string { panic("unimplemented") }