reverse

0
11 лет назад
2 года назад
2 года назад
README.md

reverse

Golang URL reverse

Simple URL reverse package. It's useful for templates. You can get a URL by a name and params and not depend on URL structure.

It fits to any router. All it does is just stores urls by a name and replace params when you retrieve a URL. To use it you have to add a URL with a name, raw URL with placeholders (params).

Example for Gin router (https://github.com/gin-gonic/gin):

Example using Goji router:

Example for Gorilla Mux

Example subrouters for Chi router: