urlx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PROTOCOLS = []string{
	"http", "https",
}

Functions

func Domain

func Domain() string

随机生成一个域名

func Path

func Path() (path string)

随机生成一个路径

func PathSegment

func PathSegment() string

随机生成一个路径片段

func Protocol

func Protocol() string

随机生成一个协议

func Query

func Query() string

随机生成一个查询字符串

func URL

func URL(opts ...Option) string

随机生成一个url

Types

type Option

type Option func(*options)

func WithDomain

func WithDomain(domain string) Option

func WithPath

func WithPath(path string) Option

func WithProtocol

func WithProtocol(protocol string) Option

func WithQuery

func WithQuery(query string) Option

Jump to

Keyboard shortcuts

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