shortcut

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

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