common

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UrlPattern = `` /* 10037-byte string literal not displayed */

Functions

func ParseFromReader

func ParseFromReader(reader io.Reader, offset int) (string, string, error)

Parse URLs from a reader. Return two strings: the modified content of the reader and a list of URLs. Use offset to indicate how many URLs preceded this reader.

func ParseFromString

func ParseFromString(str string, offset int) (string, string, error)

Parse URLs from a string. Return two strings: the modified content of the original string and a list of URLs. Use offset to indicate how many URLs preceded the original string.

func PullFromReader

func PullFromReader(reader io.Reader, target int, offset int) (string, error)

Pull a URL from a reader. Use offset to indicate how many URLs preceded this reader.

func PullFromString

func PullFromString(str string, target int, offset int) (string, error)

Pull a URL from a string. Use offset to indicate how many URLs preceded this string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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