Skip to content
go-http-utilsPublic

About

🌠Go http middleware for serving the favicon

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

favicon

Build Status Coverage Status

Go http middleware for serving the favicon.

Installation

go get -u github.com/go-http-utils/favicon

Documentation

API documentation can be found here: https://godoc.org/github.com/go-http-utils/favicon

Usage

import (
  "github.com/go-http-utils/favicon"
)
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
  res.Write([]byte("Hello World"))
})

http.ListenAndServe(":8080", favicon.Handler(mux, "./public/favicon.ico"))

About

🌠Go http middleware for serving the favicon

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages