Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unwrapErrs (0.18 sec)

  1. internal/logger/logonce.go

    		l.IDMap[id] = prev
    		shouldLog = false
    	}
    	l.Unlock()
    
    	if shouldLog {
    		consoleLogIf(ctx, subsystem, err, errKind...)
    	}
    }
    
    const unwrapErrsDepth = 3
    
    // unwrapErrs upto the point where errors.Unwrap(err) returns nil
    func unwrapErrs(err error) (leafErr error) {
    	uerr := errors.Unwrap(err)
    	depth := 1
    	for uerr != nil {
    		// Save the current `uerr`
    		leafErr = uerr
    		// continue to look for leaf errors underneath
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. api/next/63116.txt

    pkg net, type DNSError struct, UnwrapErr error #63116
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Apr 14 18:23:45 GMT 2024
    - 104 bytes
    - Viewed (0)
Back to top