Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Writer (0.24 sec)

  1. istioctl/pkg/util/common.go

    	Err error
    }
    
    func (c CommandParseError) Error() string {
    	return c.Err.Error()
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    func Confirm(msg string, writer io.Writer) bool {
    	for {
    		_, _ = fmt.Fprintf(writer, "%s ", msg)
    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    		switch strings.ToUpper(response) {
    		case "Y", "YES":
    			return true
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    var (
    	ErrHeader          = errors.New("archive/tar: invalid tar header")
    	ErrWriteTooLong    = errors.New("archive/tar: write too long")
    	ErrFieldTooLong    = errors.New("archive/tar: header field too long")
    	ErrWriteAfterClose = errors.New("archive/tar: write after close")
    	ErrInsecurePath    = errors.New("archive/tar: insecure file path")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top