package
1.10.0
Repository: https://github.com/gin-gonic/gin.git
Documentation: pkg.go.dev

# README

Gin Default Server

This is API experiment for Gin.

package main

import (
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/ginS"
)

func main() {
	ginS.GET("/", func(c *gin.Context) { c.String(200, "Hello World") })
	ginS.Run()
}

# Functions

Any is a wrapper for Engine.Any.
DELETE is a shortcut for router.Handle("DELETE", path, handle).
GET is a shortcut for router.Handle("GET", path, handle).
Group creates a new router group.
Handle is a wrapper for Engine.Handle.
HEAD is a shortcut for router.Handle("HEAD", path, handle).
LoadHTMLFiles is a wrapper for Engine.LoadHTMLFiles.
LoadHTMLGlob is a wrapper for Engine.LoadHTMLGlob.
NoMethod is a wrapper for Engine.NoMethod.
NoRoute adds handlers for NoRoute.
OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle).
PATCH is a shortcut for router.Handle("PATCH", path, handle).
POST
POST is a shortcut for router.Handle("POST", path, handle).
PUT is a shortcut for router.Handle("PUT", path, handle).
Routes returns a slice of registered routes.
Run attaches to a http.Server and starts listening and serving HTTP requests.
RunFd attaches the router to a http.Server and starts listening and serving HTTP requests through the specified file descriptor.
RunTLS attaches to a http.Server and starts listening and serving HTTPS requests.
RunUnix attaches to a http.Server and starts listening and serving HTTP requests through the specified unix socket (i.e.
SetHTMLTemplate is a wrapper for Engine.SetHTMLTemplate.
Static serves files from the given file system root.
StaticFile is a wrapper for Engine.StaticFile.
StaticFS is a wrapper for Engine.StaticFS.
Use attaches a global middleware to the router.