app v6.1.0 Release Notes
Release Date: 2020-03-11 // about 4 years ago-
Hello,
Here come the version 6.1.0.💻 It introduces the possibility to route UI content from a regex pattern.
It is done by using the RouteWithRegexp() function:
package mainimport "github.com/maxence-charriere/go-app/v6/pkg/app"func main() { app.Route("/", app.Text("hello world")) app.RouteWithRegexp("/[0-9]+", app.Text("hello number")) app.Run() }
Thanks to @stevelr for making this happen.