favicon

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Favicon

type Favicon string

Favicon is 64x64 sized data uri image send in response to a server list ping. Refer to https://en.wikipedia.org/wiki/Data_URI_scheme for details. Example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAEElEQVR42mP8z8BQzzCCAQB+lAGA+H8KEAAAAABJRU5ErkJggg=="

func FromFile

func FromFile(filename string) (Favicon, error)

FromFile takes the filename of an image and converts it to Favicon.

func FromImage

func FromImage(img image.Image) (Favicon, error)

FromImage converts an image.Image to Favicon.

Jump to

Keyboard shortcuts

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