proc

package
v1.5.173 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 2 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

Overview

Package proc constructs child processes for the desktop application.

A Windows GUI process has no console. When it starts a console-subsystem program, Windows allocates one, and the default console is visible: a short command makes a window appear and disappear for as long as the child lives. Command and CommandContext apply the platform attributes that keep that console hidden. The attributes are a no-op outside Windows.

PTY/ConPTY processes are deliberately excluded: their terminal host owns the console, so callers that need a real terminal must keep using the terminal launcher instead of this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, args ...string) *exec.Cmd

Command is exec.Command with the platform's hidden-console attributes.

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

CommandContext is exec.CommandContext with the same hidden-console attributes. The context behavior is exactly exec.CommandContext's.

func Configure

func Configure(cmd *exec.Cmd)

Configure applies the hidden-console attributes to an already built command. Use it when a caller needs exec.Command's other setup first, not for PTY processes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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