Documentation
¶
Overview ¶
Package template provides utility functions that help with the templating of created files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AirTomlTemplate ¶
func AirTomlTemplate() []byte
func GitIgnoreTemplate ¶
func GitIgnoreTemplate() []byte
func MakeTemplate ¶
func MakeTemplate() []byte
MakeTemplate returns a byte slice that represents the default Makefile template.
func ReadmeTemplate ¶
func ReadmeTemplate() []byte
ReadmeTemplate returns a byte slice that represents the default README.md file template.
Types ¶
type ChiTemplates ¶
type ChiTemplates struct{}
ChiTemplates contains the methods used for building an app that uses github.com/go-chi/chi
func (ChiTemplates) Main ¶
func (c ChiTemplates) Main() []byte
func (ChiTemplates) Routes ¶
func (c ChiTemplates) Routes() []byte
func (ChiTemplates) RoutesWithDB ¶
func (c ChiTemplates) RoutesWithDB() []byte
func (ChiTemplates) Server ¶
func (c ChiTemplates) Server() []byte
func (ChiTemplates) ServerWithDB ¶
func (c ChiTemplates) ServerWithDB() []byte
func (ChiTemplates) TestHandler ¶ added in v0.3.1
func (c ChiTemplates) TestHandler() []byte
type EchoTemplates ¶
type EchoTemplates struct{}
EchoTemplates contains the methods used for building an app that uses github.com/labstack/echo
func (EchoTemplates) Main ¶
func (e EchoTemplates) Main() []byte
func (EchoTemplates) Routes ¶
func (e EchoTemplates) Routes() []byte
func (EchoTemplates) RoutesWithDB ¶
func (e EchoTemplates) RoutesWithDB() []byte
func (EchoTemplates) Server ¶
func (e EchoTemplates) Server() []byte
func (EchoTemplates) ServerWithDB ¶
func (e EchoTemplates) ServerWithDB() []byte
func (EchoTemplates) TestHandler ¶ added in v0.3.1
func (e EchoTemplates) TestHandler() []byte
type FiberTemplates ¶
type FiberTemplates struct{}
FiberTemplates contains the methods used for building an app that uses github.com/gofiber/fiber
func (FiberTemplates) Main ¶
func (f FiberTemplates) Main() []byte
func (FiberTemplates) Routes ¶
func (f FiberTemplates) Routes() []byte
func (FiberTemplates) RoutesWithDB ¶
func (f FiberTemplates) RoutesWithDB() []byte
func (FiberTemplates) Server ¶
func (f FiberTemplates) Server() []byte
func (FiberTemplates) ServerWithDB ¶
func (f FiberTemplates) ServerWithDB() []byte
func (FiberTemplates) TestHandler ¶ added in v0.3.1
func (f FiberTemplates) TestHandler() []byte
type GinTemplates ¶
type GinTemplates struct{}
GinTemplates contains the methods used for building an app that uses github.com/gin-gonic/gin
func (GinTemplates) Main ¶
func (g GinTemplates) Main() []byte
func (GinTemplates) Routes ¶
func (g GinTemplates) Routes() []byte
func (GinTemplates) RoutesWithDB ¶
func (g GinTemplates) RoutesWithDB() []byte
func (GinTemplates) Server ¶
func (g GinTemplates) Server() []byte
func (GinTemplates) ServerWithDB ¶
func (g GinTemplates) ServerWithDB() []byte
func (GinTemplates) TestHandler ¶ added in v0.3.1
func (g GinTemplates) TestHandler() []byte
type GorillaTemplates ¶
type GorillaTemplates struct{}
GorillaTemplates contains the methods used for building an app that uses github.com/gorilla/mux
func (GorillaTemplates) Main ¶
func (g GorillaTemplates) Main() []byte
func (GorillaTemplates) Routes ¶
func (g GorillaTemplates) Routes() []byte
func (GorillaTemplates) RoutesWithDB ¶
func (g GorillaTemplates) RoutesWithDB() []byte
func (GorillaTemplates) Server ¶
func (g GorillaTemplates) Server() []byte
func (GorillaTemplates) ServerWithDB ¶
func (g GorillaTemplates) ServerWithDB() []byte
func (GorillaTemplates) TestHandler ¶ added in v0.3.1
func (g GorillaTemplates) TestHandler() []byte
type RouterTemplates ¶
type RouterTemplates struct{}
RouterTemplates contains the methods used for building an app that uses github.com/julienschmidt/httprouter
func (RouterTemplates) Main ¶
func (r RouterTemplates) Main() []byte
func (RouterTemplates) Routes ¶
func (r RouterTemplates) Routes() []byte
func (RouterTemplates) RoutesWithDB ¶
func (r RouterTemplates) RoutesWithDB() []byte
func (RouterTemplates) Server ¶
func (r RouterTemplates) Server() []byte
func (RouterTemplates) ServerWithDB ¶
func (r RouterTemplates) ServerWithDB() []byte
func (RouterTemplates) TestHandler ¶ added in v0.3.1
func (r RouterTemplates) TestHandler() []byte
type StandardLibTemplate ¶
type StandardLibTemplate struct{}
StandardLibTemplate contains the methods used for building an app that uses net/http
func (StandardLibTemplate) Main ¶
func (s StandardLibTemplate) Main() []byte
func (StandardLibTemplate) Routes ¶
func (s StandardLibTemplate) Routes() []byte
func (StandardLibTemplate) RoutesWithDB ¶
func (s StandardLibTemplate) RoutesWithDB() []byte
func (StandardLibTemplate) Server ¶
func (s StandardLibTemplate) Server() []byte
func (StandardLibTemplate) ServerWithDB ¶
func (s StandardLibTemplate) ServerWithDB() []byte
func (StandardLibTemplate) TestHandler ¶ added in v0.3.1
func (s StandardLibTemplate) TestHandler() []byte