Documentation ¶
Overview ¶
Package procname provides methods for changing process name in the process tree
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrongSize is returned if given slice have the wrong size ErrWrongSize = errors.New("Given slice must have same size as os.Arg") // ErrWrongArguments is returned if one of given arguments is empty ErrWrongArguments = errors.New("Arguments can't be empty") )
Functions ¶
func Replace ¶
Replace replaces one argument in process command
WARNING: Be careful with using os.Args or options.Parse result as 'from' argument. After using this method given variable content will be replaced. Use strutil.Copy method in this case.
Example ¶
password := "mySuppaPass" // Replacing known password to asterisks err := Replace(password, "*****************") if err != nil { fmt.Printf("Error: %v\n", err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.