imgtype

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2016 License: MIT Imports: 6 Imported by: 0

README

goimgtype

Godoc Build Status GitHub release MIT License

Return type of image based on mime type

How to install
go get github.com/shamsher31/goimgtype
How to use
package main

import (
	"fmt"
	"github.com/shamsher31/goimgtype"
)

func main() {
  fmt.Println(imgtype.Get("./golang.jpg"))
  // image/jpeg
}

goimgext
govdoext
gobinext

License

MIT © Shamsher Ansari

Documentation

Overview

Package imgtype return type of image based on mime type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(p string) (string, error)

Get returns the type of Image

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL