clipboard

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package clipboard provides timer-based clipboard clearing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Countdown

func Countdown(duration int, updateFn func(int), cancelCh <-chan struct{})

Countdown reports the remaining seconds until zero unless canceled.

func StartAutoClear

func StartAutoClear(duration int, clearFn func(), cancelCh <-chan struct{})

StartAutoClear clears the clipboard after the configured timeout unless canceled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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