Documentation
¶
Overview ¶
Package routepath defines endpoint paths and route prefixes. Package routepath 定义端点路径和路由前缀。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join combines a validated route prefix and endpoint path, preserving trailing slashes. Join 组合已校验的路由前缀和端点路径,保留尾斜线。
func Validate ¶
Validate checks a route path. A lone slash denotes a trailing-slash endpoint. Validate 检查路由路径;单独的斜线表示带尾斜线的端点。
func ValidatePrefix ¶
ValidatePrefix checks a route prefix. Empty means no prefix. ValidatePrefix 检查路由前缀;空字符串表示不添加前缀。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.