pids

package
v0.4.122 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 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(u32 uint32) (pid Pid)

func NewPid1

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

func NewPidInteger added in v0.4.86

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

NewPidInteger returns a typed value process identifier

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