shahariaz 2c42206345 test: increase coverage to 98.9% by covering previously untested code paths
- ginS: add TestLoadHTMLGlob, TestLoadHTMLFiles, TestLoadHTMLFS covering the
  three HTML template loader wrappers (73.1% -> 100%)
- ginS: add TestRunError, TestRunTLSError, TestRunUnixError, TestRunFdError
  covering all four server-start wrappers via fast-failing error paths
- binding: add TestPlainBindingBody covering plainBinding.BindBody (string,
  []byte, unsupported type, and nil receiver branches)
- render: add TestRedirectWriteContentType covering the Redirect no-op method

Overall project coverage: 98.5% -> 98.9%
Patch coverage: 100%
2026-06-02 21:15:55 +06:00
..
2017-06-12 22:35:10 -05:00

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()
}