favicon

package
v2.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_ALLOW = "GET, HEAD, OPTIONS"
)

Variables

View Source
var DefaultConfig = Config{
	File:         "favicon.ico",
	Url:          "/favicon.ico",
	CacheControl: "public, max-age=31536000",
}

Functions

func New

func New(conf ...Config) core.HandlerFunc

Types

type Config

type Config struct {
	File         string `json:"file"`
	Url          string `json:"url"`
	CacheControl string `json:"cache_control"`
}

Jump to

Keyboard shortcuts

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