Help us shape the future of Go! Take the 2026 Go Developer Survey

globutil

package
v0.87.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL struct {
	Scheme string
	Host   string
	Path   string
}

func ParseBucketURL

func ParseBucketURL(input string) (*URL, error)

ParseBucketURL parses a URL while preserving glob patterns in the URL's path. For example, url.Parse removes `?` as a query string, which is problematic because `?` is a valid character in glob patterns.

func ParseBucketURLLenient added in v0.85.0

func ParseBucketURLLenient(input string) (*URL, error)

ParseBucketURLLenient parses a URL similar to ParseBucketURL, but is tolerant of inputs that do not include a scheme (i.e., missing "://"). In such cases, the entire input is treated as the path, and Scheme and Host are returned as empty strings.

func (*URL) String added in v0.48.0

func (u *URL) String() string

Jump to

Keyboard shortcuts

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