Versions in this module Expand all Collapse all v1 v1.1.0 Sep 21, 2023 Changes in this version + func Cookie(c *gin.Context, name, value string, maxAge int) + func FoundRedirect(c *gin.Context, location string) + func GetOrigin(c *gin.Context) string + func JSON(c *gin.Context) + func JSONBadRequest(c *gin.Context, err error) + func JSONData(c *gin.Context, data interface{}) + func JSONError(c *gin.Context, status int, err error) + func JSONForbidden(c *gin.Context, err error) + func JSONList(c *gin.Context, list interface{}, total int64) + func JSONServerError(c *gin.Context, err error) + func JSONUnauthorized(c *gin.Context, err error) + func MovedRedirect(c *gin.Context, location string) + func ParamInt(c *gin.Context, name string) int + func ParamInt64(c *gin.Context, name string) int64 + func QueryInt(c *gin.Context, name string) int + func QueryInt64(c *gin.Context, name string) int64 + func SetupEmbedAssets(rg *gin.RouterGroup, fs http.FileSystem, relativePaths ...string) + func SetupPing(e *gin.Engine) + func SetupResource(rg *gin.RouterGroup, resources ...Resource) + func SetupStaticAssets(rg *gin.RouterGroup, dir string) + func SetupSwagger(engine *gin.Engine) + func Startup(e *gin.Engine, addr string) + func TemporaryRedirect(c *gin.Context, location string) + type Resource interface + Register func(router *gin.RouterGroup) + type SRI struct + Handlers gin.HandlersChain + Pattern string + type Server struct + func NewServer(addr string) *Server + func (s *Server) Run() + func (s *Server) Start() + func (s *Server) Stop() + type SimpleRouter struct + func NewSimpleRouter() *SimpleRouter + func (si *SimpleRouter) Handler(c *gin.Context) + func (si *SimpleRouter) Route(relativePath string, handlerFunc ...gin.HandlerFunc) + func (si *SimpleRouter) StaticFsIndex(pattern string, fs http.FileSystem) + func (si *SimpleRouter) StaticIndex(pattern, dir string)