utils

package
v0.0.0-...-8d1515a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCopyToClipboard = errors.New("failed to copy to clipboard")
	ErrCreateFile      = errors.New("failed to create file")
	ErrWriteToFile     = errors.New("failed to write to file")
)

Functions

func CopyToClipboard

func CopyToClipboard(text string) error

CopyToClipboard copies the given text to the clipboard

func SaveToFile

func SaveToFile(text, filename string) error

SaveToFile saves the given text to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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