Skip to content

zeslava/sigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigo

Pure Go detector of file type by signatures

sigo uses radix-tree for storing files signatures.

Detect reading from input byte-by-byte and find signature in the tree.

Usage

package main

import (
	"fmt"
	"os"
	
	"github.com/slavablind91/sigo/detector"
)

func main() {
	file, _ := os.Open("filename")
	t, _ := detector.Detect(file)
	fmt.Printf("file type is %s", t.Description)
}

Resources

Most information is took from here: https://www.garykessler.net/library/file_sigs.html

⚠️ WARNING ⚠️

Project under development at an earlier stage

About

Pure Go detector of file type by signatures

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages