links

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDownloadFilesLink(link string, defaultURL *url.URL) (string, error)
func BuildDownloadLink(link string, defaultURL *url.URL) (string, error)

func RemovePrefixFromPath added in v3.4.0

func RemovePrefixFromPath(path, prefix string) string

Types

type Builder

type Builder struct {
	URL *url.URL
}

func FromHeadersOrDefault

func FromHeadersOrDefault(h *http.Header, defaultURL *url.URL) *Builder
func (b *Builder) BuildLink(link string) (string, error)

func (*Builder) BuildURL

func (b *Builder) BuildURL(oldURL *url.URL) *url.URL

Jump to

Keyboard shortcuts

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