Documentation ¶
Index ¶
Constants ¶
View Source
const DbConnMaxLifetime time.Duration = time.Hour
View Source
const DbMaxIdleConns int = 5
View Source
const DbMaxOpenConns int = 10
DbMaxOpenConns Database Connection Pooling settings
View Source
const DoMinifyCss = true
DoMinifyCss indicates if the app should compile minified global.css using npx postcss? Can be done manually or on compile instead with Note that this is also required for tailwindcss to work. uses `npx postcss`
View Source
const GzipCompressionLevel = gzip.BestSpeed
Set level of gzip compression
View Source
const ListenPort = 8080
ListenPort Internal port to listen on
View Source
const TimeoutSeconds = 15
TimeoutSeconds for server to wait for response
View Source
const WebsiteTitle = "GoWebsite-Boilerplate"
View Source
const WsReadBufferSize = 1024
WsReadBufferSize WebSocket settings
View Source
const WsWriteBufferSize = 1024
Variables ¶
View Source
var DefaultTemplateDefinitions = []DefaultTemplateDefinition{
{"head", ""},
{"content", "This page has no content"},
{"scripts", ""},
}
DefaultTemplateDefinitions Go templating requires all called templates to be defined This is a list of default template items and it's content that will be used if not defined
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.