Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageRenderer ¶
type PageRenderer struct {
// contains filtered or unexported fields
}
func (*PageRenderer) Render ¶
func (p *PageRenderer) Render(w http.ResponseWriter, r *http.Request, page Page, opts ...RenderOption)
type RenderOption ¶
type RenderOption func(*PageRenderer) error
func WithOriginalURL ¶
func WithOriginalURL(val string) RenderOption
func WithShortURL ¶
func WithShortURL(val string) RenderOption
func WithTTL ¶
func WithTTL(val time.Duration) RenderOption
Click to show internal directories.
Click to hide internal directories.