Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// Used when a required template isn't found, or when a panic is caught
Printf func(format string, a ...any) (n int, err error)
// Zero-value sets the HTTP Cache-Control Header value to "no-cache, must-revalidate"
CacheHeaderMaxAge int
/* Structure expected inside Files:
www/
(should have any non-template file needed, like css, js, favicon.ico, etc.)
templates/
index.html
blob.html
commitLine.html
directRepo.html
header.html
repos.html
refLine.html
treeLine.html
*/
Files embed.FS
Repos []struct {
Name string
Description string
Meta string // Can be any value. Available to templates for customization
}
Root string // Something like `/repos`
BrowseRoot string // Something like `/browse`
}
Source Files
¶
- aldanin.go
Click to show internal directories.
Click to hide internal directories.