Sasha Koshka
2c55824920
This should work better with the X clipboard system better when I eventually make use of that.
21 lines
537 B
Go
21 lines
537 B
Go
package tomo
|
|
|
|
import "io"
|
|
|
|
// Data represents arbitrary polymorphic data that can be used for data transfer
|
|
// between applications.
|
|
type Data map[Mime] io.ReadCloser
|
|
|
|
// Mime represents a MIME type.
|
|
type Mime struct {
|
|
// Type is the first half of the MIME type, and Subtype is the second
|
|
// half. The separating slash is not included in either. For example,
|
|
// text/html becomes:
|
|
// Mime { Type: "text", Subtype: "html" }
|
|
Type, Subtype string
|
|
}
|
|
|
|
var MimePlain = Mime { "text", "plain" }
|
|
|
|
var MimeFile = Mime { "text", "uri-list" }
|