url

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPathSeparator = "/"

默认分隔符

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	PathSeparator string
}

匹配

func NewMatcher

func NewMatcher() *Matcher

构造函数

func (*Matcher) IsPattern

func (this *Matcher) IsPattern(path string) bool

func (*Matcher) Match

func (this *Matcher) Match(pattern string, path string) bool

type URL

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

func ParseURL

func ParseURL(rawURL string) *URL

解析链接

func (*URL) AddQueries

func (this *URL) AddQueries(queries map[string]string) *URL

func (*URL) AddQuery

func (this *URL) AddQuery(name, value string) *URL

func (*URL) Build

func (this *URL) Build() *url.URL

func (*URL) BuildString

func (this *URL) BuildString() string

func (*URL) GetQuery

func (this *URL) GetQuery() url.Values

func (*URL) GetURL

func (this *URL) GetURL() *url.URL

Jump to

Keyboard shortcuts

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