Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebServer ¶
type WebServer struct { StaticFs embed.FS TemplatesFs fs.FS // contains filtered or unexported fields }
func NewWebServer ¶
func (*WebServer) Config ¶
func (d *WebServer) Config() *config.ServerConfig
func (*WebServer) HtmlWriterRender ¶
func (d *WebServer) HtmlWriterRender(w http.ResponseWriter, content interface{}, filenames ...string)
func (*WebServer) JsWriterRender ¶ added in v0.4.0
func (d *WebServer) JsWriterRender(w http.ResponseWriter, content interface{}, filenames ...string)
Click to show internal directories.
Click to hide internal directories.