shortcut

package
v0.0.0-...-31110fa Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: AGPL-3.0 Imports: 3 Imported by: 3

Documentation

Overview

Package shortcut can be used to manipulate files in the .url format (from windows). See http://www.lyberty.com/encyc/articles/tech/dot_url_format_-_an_unofficial_guide.html

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidShortcut = errors.New("The file is not in the expected format")

ErrInvalidShortcut is the error when a .url file cannot be parsed.

Functions

func Generate

func Generate(url string) []byte

Generate creates the content of a .url file for the given destination URL.

Types

type Result

type Result struct {
	URL string
}

Result is the result of the parsing of a .url file.

func Parse

func Parse(r io.Reader) (Result, error)

Parse extracts information from a .url file.

Jump to

Keyboard shortcuts

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