mime

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Png is a png image
	Png = Type{MimeType: "image/png", Ext: "png"}
	// Jpg is a jpeg image
	//	Jpg = Type{MimeType: "image/jpeg", Ext: "jpeg"}
	// HTML is a html page
	HTML = Type{MimeType: "text/html", Ext: "html"}
)

Functions

This section is empty.

Types

type Type

type Type struct {
	MimeType string
	Ext      string
}

Type represents a mime type

func (*Type) Scan

func (t *Type) Scan(value interface{}) error

Scan scan value into mime.Type, implements sql.Scanner interface

func (Type) Value

func (t Type) Value() (driver.Value, error)

Value return MimeType value, implement driver.Valuer interface

Jump to

Keyboard shortcuts

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