Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for error (0.16 sec)

  1. src/archive/zip/zip_test.go

    		t.Fatalf("error creating header: %v", err)
    	}
    	if _, err := f.Write([]byte("hi")); err != nil {
    		t.Fatalf("error writing content: %v", err)
    	}
    	if err := z.Close(); err != nil {
    		t.Fatalf("error closing zip writer: %v", err)
    	}
    
    	b := buf.Bytes()
    	zf, err := NewReader(bytes.NewReader(b), int64(len(b)))
    	if err != nil {
    		t.Fatalf("got %v, expected nil", err)
    	}
    	zh := zf.File[0].FileHeader
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	}
    }
    
    // panicOnError is enabled when testing to abort execution on the first error
    // and turn it into a recoverable panic.
    var panicOnError bool
    
    func (p *Parser) errorf(format string, args ...interface{}) {
    	if panicOnError {
    		panic(fmt.Errorf(format, args...))
    	}
    	if p.lineNum == p.errorLine {
    		// Only one error per line.
    		return
    	}
    	p.errorLine = p.lineNum
    	if p.lex != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    // to stay in the language.
    func println(args ...Type)
    
    // The error built-in interface type is the conventional interface for
    // representing an error condition, with the nil value representing no error.
    type error interface {
    	Error() string
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/04-vuln.yml

          render: shell
        validations:
          required: true
      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. doc/go_spec.html

    </p>
    
    <h2 id="Errors">Errors</h2>
    
    <p>
    The predeclared type <code>error</code> is defined as
    </p>
    
    <pre>
    type error interface {
    	Error() string
    }
    </pre>
    
    <p>
    It is the conventional interface for representing an error condition,
    with the nil value representing no error.
    For instance, a function to read data from a file might be defined:
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/arm64error.s

    	AND	$0x22220000, R2, RSP                             // ERROR "illegal combination"
    	ANDS	$0x22220000, R2, RSP                             // ERROR "illegal combination"
    	ADD	R1, R2, R3, R4                                   // ERROR "illegal combination"
    	BICW	R7@>33, R5, R16                                  // ERROR "shift amount out of range 0 to 31"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 37.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    				t.Errorf("%s: missing error, want %s", fileline, all)
    			} else if !strings.Contains(err, mm[0][1]) {
    				t.Errorf("%s: wrong error for %s:\n%s", fileline, all, err)
    			}
    		} else {
    			if errors[fileline] != "" {
    				t.Errorf("unexpected error on %s: %v", fileline, errors[fileline])
    			}
    		}
    		delete(errors, fileline)
    	}
    	var extra []string
    	for key := range errors {
    		extra = append(extra, key)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  8. doc/next/6-stdlib/99-minor/testing/fstest/63675.md

    [TestFS] now returns a structured error that can be unwrapped
    (via method `Unwrap() []error`). This allows inspecting errors
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 159 bytes
    - Viewed (0)
  9. api/next/63116.txt

    pkg net, type DNSError struct, UnwrapErr error #63116
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Apr 14 18:23:45 GMT 2024
    - 104 bytes
    - Viewed (0)
  10. api/next/66008.txt

    pkg net/http, func ParseCookie(string) ([]*Cookie, error) #66008
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 17 17:43:50 GMT 2024
    - 131 bytes
    - Viewed (0)
Back to top