clipboard

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknowType int = 0
	TextType   int = 1
)

Clipboard content types

Variables

This section is empty.

Functions

This section is empty.

Types

type Clipboarder

type Clipboarder interface {
	Type() int
	Data() []byte
}

Clipboarder is the interface that groups clipboard contents

func Parse

func Parse(typeID int, data []byte) Clipboarder

Parse returns decoded clipboard struct

type Text

type Text string

Text is text content of clipboard

func (Text) Data

func (c Text) Data() []byte

Data returns clipboard raw data

func (Text) Type

func (c Text) Type() int

Type returns clipboard content type

Jump to

Keyboard shortcuts

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