Documentation
¶
Overview ¶
Package spawn a process like a salmon
Index ¶
Constants ¶
View Source
const ( // SPAWNED_ENV ("$SPAWNED") is an environmental variable that is set for new processes created with Spawn() // Your application may use it to count spawn depth. // SPAWNED_ENV of 1 means first spawn, SPAWNTIME=2 means was spawned from a spawn, // SPAWNED_ENV=3 means this program was spawned from a spawned program that was spawned from another instance of the program. SPAWNED_ENV = "SPAWNED" )
Variables ¶
View Source
var GetEnviron func() []string = os.Environ
GetEnviron can be used, but if using Destroy() then its easier to just os.Setenv() before running Spawn() before Destroy()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.