Documentation
¶
Overview ¶
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Package web provides a set of templates for the specified web router.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MakeChiRoutes []byte
var MakeEchoRoutes []byte
var MakeFiberMain []byte
var MakeFiberRoutes []byte
var MakeFiberServer []byte
var MakeGinRoutes []byte
var MakeGorillaRoutes []byte
var MakeHTTPRoutes []byte
var MakeHTTPServer []byte
var MakeRouterRoutes []byte
Functions ¶
This section is empty.
Types ¶
type ChiTemplate ¶
type ChiTemplate struct{}
ChiTemplate is a struct that provides methods to generate templates for a Chi-based HTTP server.
func (ChiTemplate) Main ¶
func (c ChiTemplate) Main() []byte
Main returns the main template for the Chi-based HTTP server.
func (ChiTemplate) Routes ¶
func (c ChiTemplate) Routes() []byte
Routes returns the routes template for the Chi-based HTTP server.
func (ChiTemplate) Server ¶
func (c ChiTemplate) Server() []byte
Server returns the server template for the Chi-based HTTP server.
type EchoTemplate ¶
type EchoTemplate struct{}
EchoTemplate is a struct that provides methods to generate templates for an Echo-based HTTP server.
func (EchoTemplate) Main ¶
func (e EchoTemplate) Main() []byte
Main returns the main template for the Echo-based HTTP server.
func (EchoTemplate) Routes ¶
func (e EchoTemplate) Routes() []byte
Routes returns the routes template for the Echo-based HTTP server.
func (EchoTemplate) Server ¶
func (e EchoTemplate) Server() []byte
Server returns the server template for the Echo-based HTTP server.
type FiberTemplate ¶
type FiberTemplate struct{}
FiberTemplate is a struct that provides methods to generate templates for a Fiber-based HTTP server.
func (FiberTemplate) Main ¶
func (c FiberTemplate) Main() []byte
Main returns the main template for the Fiber-based HTTP server.
func (FiberTemplate) Routes ¶
func (c FiberTemplate) Routes() []byte
Routes returns the routes template for the Fiber-based HTTP server.
func (FiberTemplate) Server ¶
func (c FiberTemplate) Server() []byte
Server returns the server template for the Fiber-based HTTP server.
type GinTemplate ¶
type GinTemplate struct{}
GinTemplate is a struct that provides methods to generate templates for a Gin-based HTTP server.
func (GinTemplate) Main ¶
func (c GinTemplate) Main() []byte
Main returns the main template for the Gin-based HTTP server.
func (GinTemplate) Routes ¶
func (c GinTemplate) Routes() []byte
Routes returns the routes template for the Gin-based HTTP server.
func (GinTemplate) Server ¶
func (c GinTemplate) Server() []byte
Server returns the server template for the Gin-based HTTP server.
type GorillaTemplate ¶
type GorillaTemplate struct{}
GorillaTemplate is a struct that provides methods to generate templates for a Gorilla-based HTTP server.
func (GorillaTemplate) Main ¶
func (c GorillaTemplate) Main() []byte
Main returns the main template for the Gorilla-based HTTP server.
func (GorillaTemplate) Routes ¶
func (c GorillaTemplate) Routes() []byte
Routes returns the routes template for the Gorilla-based HTTP server.
func (GorillaTemplate) Server ¶
func (c GorillaTemplate) Server() []byte
Server returns the server template for the Gorilla-based HTTP server.
type HttpRouterTemplate ¶
type HttpRouterTemplate struct{}
HttpRouterTemplate is a struct that provides methods to generate templates for a HttpRouter-based HTTP server.
func (HttpRouterTemplate) Main ¶
func (c HttpRouterTemplate) Main() []byte
Main returns the main template for the HttpRouter-based HTTP server.
func (HttpRouterTemplate) Routes ¶
func (c HttpRouterTemplate) Routes() []byte
Routes returns the routes template for the HttpRouter-based HTTP server.
func (HttpRouterTemplate) Server ¶
func (c HttpRouterTemplate) Server() []byte
Server returns the server template for the HttpRouter-based HTTP server.
type StandardLibraryTemplate ¶
type StandardLibraryTemplate struct{}
StandardLibraryTemplate is a struct that provides methods to generate templates for a standard library-based HTTP server.
func (StandardLibraryTemplate) Main ¶
func (c StandardLibraryTemplate) Main() []byte
Main returns the main template for the standard library-based HTTP server.
func (StandardLibraryTemplate) Routes ¶
func (c StandardLibraryTemplate) Routes() []byte
Routes returns the routes template for the standard library-based HTTP server.
func (StandardLibraryTemplate) Server ¶
func (c StandardLibraryTemplate) Server() []byte
Server returns the server template for the standard library-based HTTP server.