- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for error (0.42 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/bytes/bytes.go
// // It panics if count is negative or if the result of (len(b) * count) // overflows. func Repeat(b []byte, count int) []byte { if count == 0 { return []byte{} } // Since we cannot return an error on overflow, // we should panic if the repeat will generate an overflow. // See golang.org/issue/16237. if count < 0 { panic("bytes: negative Repeat count") } if len(b) >= maxInt/count {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
api/next/57151.txt
pkg path/filepath, func Localize(string) (string, error) #57151...
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 26 18:08:14 GMT 2024 - 64 bytes - Viewed (0) -
src/archive/tar/stat_unix.go
// The downside is that renaming uname or gname by the OS never takes effect. var userMap, groupMap sync.Map // map[int]string func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error { sys, ok := fi.Sys().(*syscall.Stat_t) if !ok { return nil } h.Uid = int(sys.Uid) h.Gid = int(sys.Gid) if doNameLookups { // Best effort at populating Uname and Gname.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 3.2K bytes - Viewed (0)