parser

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColonParamParser

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

ColonParamParser is a parser that converts paths with colon-prefixed parameters (e.g., "/users/:id") to OpenAPI-style parameters (e.g., "/users/{id}").

func NewColonParamParser

func NewColonParamParser() *ColonParamParser

NewColonParamParser creates a new ColonParamParser instance.

func (*ColonParamParser) Parse

func (p *ColonParamParser) Parse(colonParam string) (string, error)

Parse converts a path with colon-prefixed parameters to OpenAPI-style parameters.

Jump to

Keyboard shortcuts

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