+
Skip to content

usalko/hexi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexi - just a database for hex file signatures

Packed and translated knowledge from wiki

Example of usage:

import (
    "fmt"

    "github.com/usalko/hexi"
    "github.com/usalko/hexi/ft"
)

func main() {
    fileType, err := hexi.DetectFileType([]byte{0x52, 0x41, 0x46, 0x36, 0x34})
    if err != nil {
        panic(err)
    }

    fmt.Printf("file type is %d", fileType)
    if *fileType == ft.RAF64 {
        fmt.Print("correct detection")
    }
}

If you notice an error or bug please make an issue (@Thanks)

About

Simple file types library

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载