Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(w http.ResponseWriter, r *http.Request)
Handler is a HandlerFunc handling the livereload Websocket interaction.
func NavigateToPath ¶
func NavigateToPath(path string)
NavigateToPath tells livereload to navigate to the given path. This translates to `window.location.href = path` in the client.
func NavigateToPathForPort ¶
NavigateToPathForPort is similar to NavigateToPath but will also set window.location.port to the given port value.
func RefreshPath ¶
func RefreshPath(s string)
RefreshPath tells livereload to refresh only the given path. If that path points to a CSS stylesheet or an image, only the changes will be updated in the browser, not the entire page.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.