Package Usage: go: github.com/gabriel-vasile/mimetype
Package mimetype uses magic number signatures to detect the MIME type of a file.
File formats are stored in a hierarchy with application/octet-stream at its root.
For example, the hierarchy for HTML format is application/octet-stream ->
text/plain -> text/html.
Pure io.Readers (meaning those without a Seek method) cannot be read twice.
This means that once DetectReader has been called on an io.Reader, that reader
is missing the bytes representing the header of the file.
To detect the MIME type and then reuse the input, use a buffer, io.TeeReader,
and io.MultiReader to create a new reader containing the original, unaltered data.
If the input is an io.ReadSeeker instead, call input.Seek(0, io.SeekStart)
before reusing it.
Use Extend to add support for a file format which is not detected by mimetype.
https://www.garykessler.net/library/file_sigs.html and
https://github.com/file/file/tree/master/magic/Magdir
have signatures for a multitude of file formats.
Considering the definition of a binary file as "a computer file that is not
a text file", they can differentiated by searching for the text/plain MIME
in their MIME hierarchy.
48 versions
Latest release: over 1 year ago
7,540 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/gabriel-vasile/mimetype
View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/gabriel-vasile%2Fmimetype
Dependent Repos 22,654
admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platformSize: 29.4 MB - Last synced: about 22 hours ago - Pushed: almost 2 years ago

zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystemsSize: 10.4 MB - Last synced: 10 months ago - Pushed: almost 3 years ago

krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.Size: 15.3 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

philip-teleport/teleport Fork of gravitational/teleport
Certificate authority and access plane for SSH, Kubernetes, web apps, databases and desktopsSize: 521 MB - Last synced: about 1 year ago - Pushed: about 1 year ago









paketo-buildpacks/go
A Cloud Native Buildpack for GoSize: 83 MB - Last synced: 8 days ago - Pushed: 9 days ago

paketo-buildpacks/dotnet-core
A Cloud Native Buildpack for .NET CoreSize: 175 MB - Last synced: 11 days ago - Pushed: 11 days ago



Cha0sIDL/ZeroBot-Plugin Fork of FloatTech/ZeroBot-Plugin
基于 ZeroBot 的 OneBot 插件Size: 28.4 MB - Last synced: 10 months ago - Pushed: over 1 year ago

berty/labs
Berty Labs is a mobile app to explore IPFS on mobileSize: 3.44 MB - Last synced: 16 days ago - Pushed: about 2 years ago

stashed/apimachinery
Stash API types and client-goSize: 52.9 MB - Last synced: 13 days ago - Pushed: about 2 months ago


moov-io/irs
Internal Revenue Service (IRS) Filing Information Returns Electronically (FIRE)Size: 1.42 MB - Last synced: 6 days ago - Pushed: 6 days ago

moov-io/ach-test-harness
Programmatic and configurable ACH scenario testing of returns, NOC/corrections, reconciliation, etc.Size: 1.07 MB - Last synced: 5 days ago - Pushed: 5 days ago

pickkaa/berty Fork of berty/berty
Berty is a secure peer-to-peer messaging app that works with or without internet access, cellular data or trust in the networkSize: 84.2 MB - Last synced: 12 months ago - Pushed: about 2 years ago

zaibon/go-ipfs Fork of ipfs/kubo
IPFS implementation in GoSize: 40.8 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

meonBot/go-ipfs Fork of devcode1981/go-ipfs
IPFS implementation in GoSize: 40.9 MB - Last synced: 11 months ago - Pushed: almost 2 years ago

47-studio-org/go-ipfs Fork of MarcelRaschke/go-ipfs
IPFS implementation in GoSize: 46.3 MB - Last synced: over 1 year ago - Pushed: over 1 year ago

kokizzu/pirsch Fork of pirsch-analytics/pirsch
Pirsch is a drop-in, server-side, no-cookie, and privacy-focused analytics solution for Go.Size: 8.29 MB - Last synced: 8 days ago - Pushed: 8 days ago

filecoin-project/venus-wallet
a remote wallet for provider sign serviceSize: 1.07 MB - Last synced: 25 days ago - Pushed: 25 days ago

secteria/grype Fork of anchore/grype
A vulnerability scanner for container images and filesystemsSize: 2.45 MB - Last synced: 5 months ago - Pushed: 5 months ago

boostchicken/opentelemetry-collector-contrib Fork of open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry CollectorSize: 262 MB - Last synced: 10 months ago - Pushed: over 1 year ago

moov-io/base
core libraries used in Moov projectsSize: 1.89 MB - Last synced: 5 days ago - Pushed: 5 days ago

soerenschneider/hermes
Accepts notifications via multiple adapters and routes notifications to upstream servicesSize: 281 KB - Last synced: 28 days ago - Pushed: 2 months ago

TUM-Dev/Campus-Backend
New backend written in go with gRPC as an API interfaceSize: 15 MB - Last synced: 1 day ago - Pushed: 2 days ago

getsynq/migrate Fork of golang-migrate/migrate
Database migrations. CLI and Golang library.Size: 1.63 MB - Last synced: 10 months ago - Pushed: almost 3 years ago


moov-io/go-sftp
A Go client for performing common SFTP operationsSize: 918 KB - Last synced: 5 days ago - Pushed: 5 days ago


xl3lackout/Erupe
This is a community upload of a community project. The amount of people who worked on it is innumerous, and hard to keep track of. But id like to contribute this to the efforts of Ando, Fists Team, the French Team, Mai's Team and the many wondeful members of the MHFZ community who gave their time and energy to help us. No matter the relations, these files will remain public and open source, free for all to use and modify.Size: 666 MB - Last synced: 12 months ago - Pushed: over 2 years ago


8-weeks-later/golang-with-k8s
Size: 30.1 MB - Last synced: about 1 year ago - Pushed: over 1 year ago

argoproj-labs/argocd-interlace
Enabling Software Supply Chain Security Capabilities in ArgoCDSize: 10.2 MB - Last synced: about 2 months ago - Pushed: over 2 years ago

wujunwei/harbor Fork of goharbor/harbor
An open source trusted cloud native registry project that stores, signs, and scans content.Size: 204 MB - Last synced: about 2 years ago - Pushed: almost 3 years ago

jcomeauictx/go-ipfs Fork of ipfs/kubo
IPFS implementation in GoSize: 40.8 MB - Last synced: 3 days ago - Pushed: over 2 years ago

molllyn1/go-ipfs Fork of ipfs/kubo
IPFS implementation in GoSize: 40.9 MB - Last synced: 11 months ago - Pushed: over 2 years ago

976047167/go-ipfs Fork of ipfs/kubo
IPFS implementation in GoSize: 41 MB - Last synced: about 2 years ago - Pushed: about 2 years ago
