Help us shape the future of Go! Take the 2026 Go Developer Survey

httppath

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package httppath shares HTTP pattern grammar between runtime and generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidText

func ValidText(text string) bool

ValidText checks lossless UTF-8 and excludes control characters.

Types

type Segment

type Segment struct {
	Literal string
	Name    string
	Tail    bool
}

Segment is a literal or named parameter in the shared route grammar.

func Parse

func Parse(pattern string) ([]Segment, error)

Parse validates route syntax without binding a concrete DTO or starting I/O.

Jump to

Keyboard shortcuts

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