url

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package url provides a mockable wrapper for net/url.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Parse

func (*Impl) Parse(rawURL string) (*url.URL, error)

func (*Impl) ParseQuery

func (*Impl) ParseQuery(query string) (url.Values, error)

func (*Impl) ParseRequestURI

func (*Impl) ParseRequestURI(rawURL string) (*url.URL, error)

func (*Impl) PathEscape

func (*Impl) PathEscape(s string) string

func (*Impl) PathUnescape

func (*Impl) PathUnescape(s string) (string, error)

func (*Impl) QueryEscape

func (*Impl) QueryEscape(s string) string

func (*Impl) QueryUnescape

func (*Impl) QueryUnescape(s string) (string, error)

func (*Impl) User

func (*Impl) User(username string) *url.Userinfo

func (*Impl) UserPassword

func (*Impl) UserPassword(username string, password string) *url.Userinfo

type Interface

type Interface interface {
	Parse(rawURL string) (*url.URL, error)
	ParseQuery(query string) (url.Values, error)
	ParseRequestURI(rawURL string) (*url.URL, error)
	PathEscape(s string) string
	PathUnescape(s string) (string, error)
	QueryEscape(s string) string
	QueryUnescape(s string) (string, error)
	User(username string) *url.Userinfo
	UserPassword(username string, password string) *url.Userinfo
}

Jump to

Keyboard shortcuts

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