screenshot

package
v0.0.0-...-9c4ed7d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(fp string, window bool) error

Do executes the screenshot, saving the file to the file path fp.

Types

type Program

type Program struct {
	Command        string
	WindowArgs     []string
	FullScreenArgs []string
}

Program is a simple struct defining a screenshot program

func (*Program) Do

func (p *Program) Do(fp string, window bool) error

Do executes a screenshot with the given program

func (*Program) GetCommand

func (p *Program) GetCommand(fp string, window bool) *exec.Cmd

GetCommand returns an *exec.Cmd

Jump to

Keyboard shortcuts

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