Documentation ¶
Index ¶
- func AddSitemapEntry(entries []string, slug string) []string
- func ApproxDirection(deg float64) string
- func Check(err error)
- func Copy(sourceFileName, targetFileName string) error
- func CopyHash(src, dst string) (string, error)
- func DateYMS(s string) string
- func DistanceBearing(lat1deg, lon1deg, lat2deg, lon2deg float64) (float64, float64)
- func Download(url string, dst string) error
- func DownloadHash(url string, dst string) (string, error)
- func ExecuteTemplate(templateName string, fileName string, data any)
- func ExecuteTemplateNoMinify(templateName string, fileName string, data any)
- func GenImage(fileName string, title string, sub1 string, sub2 string, backgroundPNG string) error
- func MakeDir(dir string) error
- func MonthStr(m time.Month) string
- func MustCopy(sourceFileName, targetFileName string)
- func MustCopyHash(src, dst string) string
- func MustDownload(url string, dst string)
- func MustDownloadHash(url string, dst string) string
- func MustMakeDir(dir string)
- func ParseDate(s string) (time.Time, error)
- func SanitizeName(s string) string
- func SortAndUniquify(a []string) []string
- func Split(s string) []string
- func WeekdayStr(d time.Weekday) string
- type Added
- type Breadcrumb
- type FileHashDate
- type Link
- type Sitemap
- type SitemapCategory
- type SitemapEntry
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSitemapEntry ¶
func ApproxDirection ¶
func DistanceBearing ¶
func ExecuteTemplate ¶
func ExecuteTemplateNoMinify ¶
func MustCopyHash ¶
func MustDownload ¶
func MustDownloadHash ¶
func MustMakeDir ¶
func MustMakeDir(dir string)
func SanitizeName ¶
func SortAndUniquify ¶
func WeekdayStr ¶
Types ¶
type Breadcrumb ¶
func InitBreadcrumbs ¶
func InitBreadcrumbs(link Link) []Breadcrumb
func PushBreadcrumb ¶
func PushBreadcrumb(breadcrumbs []Breadcrumb, link Link) []Breadcrumb
type FileHashDate ¶
type FileHashDate struct {
// contains filtered or unexported fields
}
type Link ¶
func (Link) IsExternal ¶
type Sitemap ¶
type Sitemap struct { BaseUrl string Categories []string Entries []*SitemapEntry }
func CreateSitemap ¶
func (*Sitemap) AddCategory ¶
func (Sitemap) GenHTML ¶
func (sitemap Sitemap) GenHTML() []SitemapCategory
type SitemapCategory ¶
type SitemapEntry ¶
type TimeRange ¶
func CreateTimeRange ¶
Click to show internal directories.
Click to hide internal directories.