Documentation
¶
Index ¶
- Variables
- func AddFileToZip(writer *zip.Writer, path string, zipPath string) error
- func CopyRecursive(from, to string) error
- func EnsureDirExists(path string) error
- func ExtractZip(zipPath string, dst string) error
- func GetDisplayBounds() []image.Rectangle
- func GetDisplayBoundsAt(x, y int) image.Rectangle
- func IsIn(dir, path string) bool
- func JSONMarshal(v any, indentSize int) ([]byte, error)
- func MoveRecursive(from, to string) (bool, error)
- func RedactPath(path string) string
- func Restart() error
- type EventDispatcher
- type Position
- type Progress
- type Size
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CopyRecursive ¶
func EnsureDirExists ¶
func ExtractZip ¶
func GetDisplayBounds ¶
func GetDisplayBoundsAt ¶
func MoveRecursive ¶
func RedactPath ¶
Types ¶
type EventDispatcher ¶
type EventDispatcher[D any] struct { // contains filtered or unexported fields }
func (*EventDispatcher[D]) Dispatch ¶
func (ed *EventDispatcher[D]) Dispatch(data D)
func (*EventDispatcher[D]) On ¶
func (ed *EventDispatcher[D]) On(f func(D)) func()
func (*EventDispatcher[D]) Once ¶
func (ed *EventDispatcher[D]) Once(f func(D))
Click to show internal directories.
Click to hide internal directories.