favicon

package
v0.0.0-...-af14b6a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 6 Imported by: 0

README

Favicon sysadmServer's middleware

sysadmServer middleware to support favicon.

Usage

Start using it

Download and install it:

$ go get github.com/wangyysde/sysadmServer/favicon

Import it in your code:

import "github.com/wangyysde/sysadmServer/favicon"
Canonical example:
package main
            
import (
    "github.com/wangyysde/sysadmServer"
    "github.com/wangyysde/sysadmServer/favicon"
)
            
func main() {
    r := sysadmServer.Default()
    r.Use(favicon.New("./favicon.ico")) // set favicon middleware 

    r.GET("/ping", func(c *sysadmServer.Context) {
        c.String(200, "Hello favicon.")
    })

    r.Run(":8080")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

This section is empty.

Jump to

Keyboard shortcuts

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