Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WithAction (0.07 sec)

  1. src/cmd/go/internal/work/shell.go

    	sh.printLock.Lock()
    	defer sh.printLock.Unlock()
    	sh.printFunc(a...)
    }
    
    func (sh *Shell) printLocked(a ...any) {
    	sh.printFunc(a...)
    }
    
    // WithAction returns a Shell identical to sh, but bound to Action a.
    func (sh *Shell) WithAction(a *Action) *Shell {
    	sh2 := *sh
    	sh2.action = a
    	return &sh2
    }
    
    // Shell returns a shell for running commands on behalf of Action a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top