gozero

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: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gozero is the router for the rest package of github.com/zeromicro/go-zero: the router of its rest server, which rest.WithRouter gives one.

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 go-zero router.

func (Framework) Conflicts

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

Conflicts drops every route go-zero refuses as a duplicate of an earlier one, trailing slash aside.

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

func (Framework) RoutePattern

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

RoutePattern writes each parameter as :name without a trailing slash, and fails on TRACE and a *.

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