bimg/type.go

11 lines
149 B
Go
Raw Normal View History

2015-03-30 04:55:04 +08:00
package bimg
type Type struct {
Name string
Mime string
}
func DetermineType(buf []byte) *Type {
return &Type{Name: "jpg", Mime: "image/jpg"}
}