chi

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package chi is the router for github.com/go-chi/chi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct{}

Framework is the chi router.

func (Framework) Conflicts

func (Framework) Conflicts(routes []framework.Route) ([]framework.Route, []framework.Conflict)

Conflicts drops every route that has the method and shape of an earlier one: a repeat of it, or one whose path parameters are named otherwise, which chi keys by position.

func (Framework) Handler

func (Framework) Handler(s *gocode.Scope) framework.Handler

func (Framework) Imports

func (Framework) Imports() []gomodel.Import

func (Framework) Name

func (Framework) Name() string

func (Framework) PathParam

func (Framework) PathParam(s *gocode.Scope, name string) string

PathParam unescapes the value, which chi cuts from the raw path when the request has one.

func (Framework) RoutePattern

func (Framework) RoutePattern(method, path string) (string, error)

RoutePattern keeps the path, a colon in a name as an underscore, since chi reads it as a pattern.

func (Framework) Templates

func (Framework) Templates() fs.FS

Jump to

Keyboard shortcuts

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