url

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package url provides URL parsing, encoding, and decoding utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) (string, error)

Decode URL-decodes a string. Returns the decoded string or an error.

func Encode

func Encode(s string) string

Encode URL-encodes a string.

Types

type ParsedURL

type ParsedURL struct {
	Scheme   string
	Host     string
	Path     string
	Fragment string
	Query    map[string][]string
	Username string
	Password string
}

ParsedURL represents a parsed URL with its components.

func Parse

func Parse(rawURL string) (*ParsedURL, error)

Parse parses a URL string into its components.

Jump to

Keyboard shortcuts

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