url

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package url contains helper functions for dealing with URL strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatUrl

func FormatUrl(baseUrl string, pathParts []string, query url.Values, fragment string) (string, error)

Create a URL with the given base, path parts, query string, and fragment. This method will properly URI encode everything and handle leading and trailing slashes.

func OpenURL added in v0.12.4

func OpenURL(url string) error

Attempt to open a URL in the user's browser. We use this to open docs, PRs we've programmatically opened, etc

Types

This section is empty.

Jump to

Keyboard shortcuts

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