pids

package
v0.4.78 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pid

type Pid uint32

Pid is a unique named type for process identifiers

  • Pid implements fmt.Stringer
  • Pid is ordered
  • Pid has IsNonZero Int Uint32 methods

func NewPid

func NewPid[T constraints.Integer](pid T) (typedPid Pid, err error)

NewPid returns a typed value process identifier

func NewPid1

func NewPid1[T constraints.Integer](pid T) (typedPid Pid)

func (Pid) Int

func (pid Pid) Int() (pidInt int)

func (Pid) IsNonZero added in v0.4.38

func (pid Pid) IsNonZero() (isValid bool)

func (Pid) String

func (pid Pid) String() (s string)

func (Pid) Uint32

func (pid Pid) Uint32() (pidUint32 uint32)

Jump to

Keyboard shortcuts

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