slick

package
v0.0.0-...-52150ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func (*Context) Render

func (c *Context) Render(tcp templ.Component) error

renders a templ Component with friendly support of slick.Context

type ErrorHandler

type ErrorHandler func(*Context, error) error

type Handler

type Handler func(c *Context) error

type Slick

type Slick struct {
	ErrorHandler ErrorHandler
	Router       *httprouter.Router
}

carrier for all Slick methods

func New

func New() *Slick

Slick constructor

func (*Slick) Get

func (s *Slick) Get(path string, h Handler, plugs ...Handler)

wrapper for httprouter.GET(); 'plugs' is reserved for middleware functions.

func (*Slick) Start

func (s *Slick) Start(port string) error

fires up the web server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL