net

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Helper package for tests, must not be used in production code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeURLPath

func NormalizeURLPath(s string) string

NormalizeURLPath replace repeated '/' characters with a single '/' character and remove ending '/'.

func RandomURLString

func RandomURLString(n int) string

RandomURLString generates random URL path of length n.

func RandomValidURLString

func RandomValidURLString(n, maxSegmentLen int) string

RandomValidURLString generate URL path of length n where the delimiter '/' occurs at least every maxSegmentLen characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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