modulepackage
0.0.0-20200327055657-db8a57cc4c02
Repository: https://github.com/mattn/echo-livereload.git
Documentation: pkg.go.dev
# README
echo-livereload
echo middleware that provide livereload feature
Usage
package main
import (
"net/http"
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"github.com/mattn/echo-livereload"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "")
})
e.Use(middleware.Static("assets"))
e.Use(livereload.LiveReload())
e.Logger.Fatal(e.Start(":8989"))
}
License
MIT
Author
Yasuhiro Matsumoto (a.k.a. mattn)
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author