File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
1616// Example:
1717//
1818// cred := syscall.Credential{Uid: 1000, Gid: 1000}
19- // c := NewCommand("echo hello", cred)
19+ // c := NewCommand("echo hello", WithUser( cred) )
2020// c.Execute()
2121func WithUser (credential syscall.Credential ) func (c * Command ) {
2222 return func (c * Command ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
1616// Example:
1717//
1818// token := syscall.Token(handle)
19- // c := NewCommand("echo hello", token)
19+ // c := NewCommand("echo hello", WithUser( token) )
2020// c.Execute()
2121func WithUser (token syscall.Token ) func (c * Command ) {
2222 return func (c * Command ) {
You can’t perform that action at this time.
0 commit comments