Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnknowType int = 0 // UnknowType represents an unknown clipboard content type TextType int = 1 // TextType represents a text clipboard content type )
Clipboard content types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clipboarder ¶
type Clipboarder interface { Type() int // Type returns the type of clipboard content Data() []byte // Data returns the raw data of the clipboard content }
Clipboarder is the interface that groups clipboard contents.
func Parse ¶
func Parse(typeID int, data []byte) Clipboarder
Parse decodes the clipboard content based on the typeID and returns the appropriate Clipboarder.
Click to show internal directories.
Click to hide internal directories.