favicon

package
v0.0.0-...-c32710b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package favicon fetches favicons from URLs

Index

Constants

View Source
const DefaultFaviconName = "favicon.ico"

Variables

This section is empty.

Functions

func FetchURL

func FetchURL(url string) ([]byte, error)

FetchURL retrieves the payload of the specified URL

func GetFaviconFromURL

func GetFaviconFromURL(url string) (fileName string, payload []byte, err error)

GetFaviconFromURL tries to find and fetch the favicon from the given URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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