Versions in this module Expand all Collapse all v1 v1.1.1 Aug 18, 2022 Changes in this version + type Data struct + About *template.Template + AdminMail *string + AdminName *string + BodyMaxLen *int + DB storage.DB + Docs *template.Template + DocsApiLibs *template.Template + DocsApiV1 *template.Template + EmbeddedHelpPage *template.Template + EmbeddedPage *template.Template + ErrorPage *template.Template + Lexers *[]string + License *template.Template + Locales *Locales + Log logger.Config + Main *template.Template + MainJS *[]byte + MaxLifeTime *int64 + PasteContinue *template.Template + PasteJS *[]byte + PastePage *template.Template + RobotsDisallow *bool + ServerAbout *string + ServerRules *string + Settings *template.Template + SourceCodePage *template.Template + StyleCSS *[]byte + TitleMaxLen *int + Version *string + func Load(cfg config.Config, webDir string) (Data, error) + func (data Data) AboutHand(rw http.ResponseWriter, req *http.Request) + func (data Data) DlHand(rw http.ResponseWriter, req *http.Request) + func (data Data) DocsApiLibsHand(rw http.ResponseWriter, req *http.Request) + func (data Data) DocsApiV1Hand(rw http.ResponseWriter, req *http.Request) + func (data Data) DocsHand(rw http.ResponseWriter, req *http.Request) + func (data Data) EmbeddedHand(rw http.ResponseWriter, req *http.Request) + func (data Data) EmbeddedHelpHand(rw http.ResponseWriter, req *http.Request) + func (data Data) LicenseHand(rw http.ResponseWriter, req *http.Request) + func (data Data) MainHand(rw http.ResponseWriter, req *http.Request) + func (data Data) MainJSHand(rw http.ResponseWriter, req *http.Request) + func (data Data) PasteJSHand(rw http.ResponseWriter, req *http.Request) + func (data Data) RobotsTxtHand(rw http.ResponseWriter, req *http.Request) + func (data Data) SettingsHand(rw http.ResponseWriter, req *http.Request) + func (data Data) SitemapHand(rw http.ResponseWriter, req *http.Request) + func (data Data) SourceCodePageHand(rw http.ResponseWriter, req *http.Request) + func (data Data) StyleCSSHand(rw http.ResponseWriter, req *http.Request) + type Locale map[string]string + type Locales map[string]*Locale