Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for Errorf (0.15 sec)

  1. src/bytes/compare_test.go

    			a[i] = 8
    			b[i] = 9
    		}
    		cmp := Compare(a[:len], b[:len])
    		if cmp != 0 {
    			t.Errorf(`CompareIdentical(%d) = %d`, len, cmp)
    		}
    		if len > 0 {
    			cmp = Compare(a[:len-1], b[:len])
    			if cmp != -1 {
    				t.Errorf(`CompareAshorter(%d) = %d`, len, cmp)
    			}
    			cmp = Compare(a[:len], b[:len-1])
    			if cmp != 1 {
    				t.Errorf(`CompareBshorter(%d) = %d`, len, cmp)
    			}
    		}
    		for k := 0; k < len; k++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. 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)
  3. src/archive/tar/writer_test.go

    			t.Errorf("WriteHeader() = got %v, want non-nil error", err)
    		}
    		if _, err := tw.Write(nil); err == nil {
    			t.Errorf("Write() = %v, want non-nil error", err)
    		}
    		if err := tw.Flush(); err == nil {
    			t.Errorf("Flush() = %v, want non-nil error", err)
    		}
    		if err := tw.Close(); err == nil {
    			t.Errorf("Close() = %v, want non-nil error", err)
    		}
    	})
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. api/go1.18.txt

    pkg net/netip, func ParseAddr(string) (Addr, error)
    pkg net/netip, func ParseAddrPort(string) (AddrPort, error)
    pkg net/netip, func ParsePrefix(string) (Prefix, error)
    pkg net/netip, func PrefixFrom(Addr, int) Prefix
    pkg net/netip, method (*Addr) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Addr) UnmarshalText([]uint8) error
    pkg net/netip, method (*AddrPort) UnmarshalBinary([]uint8) error
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/asm.go

    		case sys.ARM:
    			if !arch.ARMConditionCodes(prog, cond) {
    				p.errorf("unrecognized condition code .%q", cond)
    				return
    			}
    
    		case sys.ARM64:
    			if !arch.ARM64Suffix(prog, cond) {
    				p.errorf("unrecognized suffix .%q", cond)
    				return
    			}
    
    		case sys.AMD64, sys.I386:
    			if err := x86.ParseSuffix(prog, cond); err != nil {
    				p.errorf("%v", err)
    				return
    			}
    		case sys.RISCV64:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/ast.go

    	if err != nil {
    		if list, ok := err.(scanner.ErrorList); ok {
    			// If err is a scanner.ErrorList, its String will print just
    			// the first error and then (+n more errors).
    			// Instead, turn it into a new Error that will return
    			// details for all the errors.
    			for _, e := range list {
    				fmt.Fprintln(os.Stderr, e)
    			}
    			os.Exit(2)
    		}
    		fatalf("parsing %s: %s", name, err)
    	}
    	return ast1
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    This program will not compile, but cgo can use the presence or absence
    of an error message on a given line to deduce the information it
    needs. The program is syntactically valid regardless of whether each
    name is a type or an ordinary identifier, so there will be no syntax
    errors that might stop parsing early.
    
    An error on not-declared:1 indicates that foo is undeclared.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/input.go

    	if err != nil {
    		in.Error("error parsing #line (cannot happen):", err)
    	}
    	tok = in.Stack.Next()
    	if tok != scanner.String {
    		in.expectText("expected file name in #line")
    	}
    	file, err := strconv.Unquote(in.Stack.Text())
    	if err != nil {
    		in.Error("unquoting #line file name: ", err)
    	}
    	tok = in.Stack.Next()
    	if tok != '\n' {
    		in.Error("unexpected token at end of #line: ", tok)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. api/go1.13.txt

    pkg debug/elf, type Symbol struct, Version string
    pkg encoding/csv, method (*ParseError) Unwrap() error
    pkg encoding/json, method (*MarshalerError) Unwrap() error
    pkg errors, func As(error, interface{}) bool
    pkg errors, func Is(error, error) bool
    pkg errors, func Unwrap(error) error
    pkg go/constant, func Make(interface{}) Value
    pkg go/constant, func Val(Value) interface{}
    pkg go/token, func IsExported(string) bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  10. src/cmd/api/testdata/src/pkg/p1/p1.go

    	GetNamed(string) (balance int64)
    	private()
    }
    
    type Public interface {
    	X()
    	Y()
    }
    
    // Deprecated: Use Unexported.
    type Private interface {
    	X()
    	y()
    }
    
    type Error interface {
    	error
    	Temporary() bool
    }
    
    func (myInt) privateTypeMethod()           {}
    func (myInt) CapitalMethodUnexportedType() {}
    
    // Deprecated: use TMethod.
    func (s *S2) SMethod(x int8, y int16, z int64) {}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
Back to top