checkinstall

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: AGPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChecker = func(name string) bool {
	_, err := exec.LookPath(name)
	return err == nil
}

Functions

This section is empty.

Types

type CheckInstall

type CheckInstall struct {
	// contains filtered or unexported fields
}

func New

func New(name string, checker ...func(name string) bool) *CheckInstall

func (*CheckInstall) IsInstalled

func (c *CheckInstall) IsInstalled() bool

func (*CheckInstall) ResetCheck

func (c *CheckInstall) ResetCheck()

Jump to

Keyboard shortcuts

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