profile

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PlatformLinux   = "linux"
	PlatformWindows = "windows"
	PlatformMac     = "macos"
)

Platform identifiers

Variables

This section is empty.

Functions

func GetFingerprintWeight

func GetFingerprintWeight(fpType string) (weight int)

GetFingerprintWeight returns the weight of the given fingerprint type.

func GetPathIdentifier

func GetPathIdentifier(path string) string

GetPathIdentifier returns the identifier from the given path

Types

type Fingerprint

type Fingerprint struct {
	OS       string
	Type     string
	Value    string
	Comment  string
	LastUsed int64
}

Fingerprint links processes to profiles.

func (*Fingerprint) MatchesOS

func (fp *Fingerprint) MatchesOS() bool

MatchesOS returns whether the Fingerprint is applicable for the current OS.

Jump to

Keyboard shortcuts

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