github.com/moapis/ehtml
Package ehtml provides ways of rendering an error html page, using Go templates. It supports status code specific templates, with fallback to a generic error template. If no templates are defined, it uses a simple placeholder template. Define some templates: Parse them into a globale variable (or part of your Handler object): If you are using Gorilla mux, set the `NotFoundHandler` Optionally, extend `Data` to add more context. As an alternative, you can also roll your own implementation of `Provider`. And whenever something goes wrong in your handlers, call `Render()`:
proxy.golang.org
v0.2.1
almost 6 years ago
3
1
2
github.com/moapis/authenticator v0.3.2
A stand-alone gRPC based authentication API. Easily integrate authentication into any custom proj...9 versions - Latest release: over 5 years ago - 2 dependent packages - 1 dependent repositories - 12 stars on GitHub
Past Dependents
Check this option to include packages that no longer depend on this package in their latest version but previously did.
Filter
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/moapis/ehtml
spec |
| License | BSD-3-Clause |
| Namespace | github.com/moapis |
| First Release | almost 6 years ago |
| Last Synced | 10 days ago |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |