Documentation
¶
Index ¶
- Constants
- func InjectHtml(r *http.Request, html []byte) []byte
- func ServerStart(option *ServerOptions)
- func WatchStart(watch []string, exclude []string)
- func WithReload(next http.Handler) http.HandlerFunc
- func WriteHtml(w http.ResponseWriter, r *http.Request, html []byte)
- type ServerOptions
- type WatchOptions
Constants ¶
View Source
const DefaultPort int = 9999
Variables ¶
This section is empty.
Functions ¶
func InjectHtml ¶
returns HTML with reload script injected, only if enabled
func WatchStart ¶
func WithReload ¶
func WithReload(next http.Handler) http.HandlerFunc
Types ¶
type ServerOptions ¶
============================================================ Server Options ============================================================
func NewServerOption ¶
func NewServerOption() *ServerOptions
func (*ServerOptions) SetForwardHost ¶
func (s *ServerOptions) SetForwardHost(h string) error
func (*ServerOptions) SetPort ¶
func (s *ServerOptions) SetPort(port int) error
type WatchOptions ¶
Click to show internal directories.
Click to hide internal directories.