Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aofei committed Jul 15, 2020
1 parent fbc85e7 commit 8676179
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![GitHub Actions](https://github.com/aofei/mimesniffer/workflows/Main/badge.svg)](https://github.com/aofei/mimesniffer)
[![codecov](https://codecov.io/gh/aofei/mimesniffer/branch/master/graph/badge.svg)](https://codecov.io/gh/aofei/mimesniffer)
[![Go Report Card](https://goreportcard.com/badge/github.com/aofei/mimesniffer)](https://goreportcard.com/report/github.com/aofei/mimesniffer)
[![GoDoc](https://godoc.org/github.com/aofei/mimesniffer?status.svg)](https://godoc.org/github.com/aofei/mimesniffer)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/aofei/mimesniffer)](https://pkg.go.dev/github.com/aofei/mimesniffer)

A MIME type sniffer for Go.

Expand All @@ -12,14 +12,14 @@ MIMESniffer implements the algorithm described at
[magic numbers](https://en.wikipedia.org/wiki/Magic_number_\(programming\)#Magic_numbers_in_files))
listed [here](https://www.garykessler.net/library/file_sigs.html) to determine
the MIME type of the given data. So it can be used as an alternative for the
[`http.DetectContentType`](https://godoc.org/net/http#DetectContentType).
[`http.DetectContentType`](https://pkg.go.dev/net/http#DetectContentType).

## Features

* Extremely easy to use
* Only two functions
* [`mimesniffer.Register`](https://godoc.org/github.com/aofei/mimesniffer#Register)
* [`mimesniffer.Sniff`](https://godoc.org/github.com/aofei/mimesniffer#Sniff)
* [`mimesniffer.Register`](https://pkg.go.dev/github.com/aofei/mimesniffer#Register)
* [`mimesniffer.Sniff`](https://pkg.go.dev/github.com/aofei/mimesniffer#Sniff)
* Quite fast
* Supports a wide range of MIME types
* `application/epub+zip`
Expand Down

0 comments on commit 8676179

Please sign in to comment.