- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for Truong (0.2 sec)
-
src/cmd/cgo/ast.go
continue } name := strings.TrimSpace(c.Text[9:]) if name == "" { error_(c.Pos(), "export missing name") } if name != n.Name.Name { error_(c.Pos(), "export comment has wrong name %q, want %q", name, n.Name.Name) } doc := "" for _, c1 := range n.Doc.List { if c1 != c { doc += c1.Text + "\n" } } f.ExpFunc = append(f.ExpFunc, &ExpFunc{
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) -
src/bytes/buffer_test.go
func TestReadEmptyAtEOF(t *testing.T) { b := new(Buffer) slice := make([]byte, 0) n, err := b.Read(slice) if err != nil { t.Errorf("read error: %v", err) } if n != 0 { t.Errorf("wrong count; got %d want 0", n) } } func TestUnreadByte(t *testing.T) { b := new(Buffer) // check at EOF if err := b.UnreadByte(); err == nil { t.Fatal("UnreadByte at EOF: got no error") }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 13:31:36 GMT 2024 - 18.6K bytes - Viewed (0) -
src/archive/zip/reader.go
f.headerOffset += r.baseOffset r.File = append(r.File, f) } if uint16(len(r.File)) != uint16(end.directoryRecords) { // only compare 16 bits here // Return the readDirectoryHeader error if we read // the wrong number of directory entries. return err } if zipinsecurepath.Value() == "0" { for _, f := range r.File { if f.Name == "" { // Zip permits an empty file name field. continue }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 27.7K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
if tok == ')' { break } } // Zero-argument macros are tricky. if len(macro.args) == 0 && len(args) == 1 && args[0] == nil { args = nil } else if len(args) != len(macro.args) { in.Error("wrong arg count for macro", macro.name) } argMap := make(map[string][]Token) for i, arg := range args { argMap[macro.args[i]] = arg } return argMap }
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) -
src/archive/zip/zip_test.go
t.Parallel() // Test a zip file with uncompressed size 0xFFFFFFFF. // That's the magic marker for a 64-bit file, so even though // it fits in a 32-bit field we must use the 64-bit field. // Go 1.5 and earlier got this wrong, // writing an invalid zip file. const size = 1<<32 - 1 - int64(len("END\n")) // before the "END\n" part buf := testZip64(t, size) testZip64DirectoryRecordLength(buf, t) }
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/bufio/scan_test.go
if s.ErrOrEOF() != io.EOF { t.Fatal("not testing EOF") } err = testError } return } s.Split(split) for s.Scan() { } if s.Err() != testError { t.Fatal("wrong error:", s.Err()) } } // Test for issue 5268. type alwaysError struct{} func (alwaysError) Read(p []byte) (int, error) { return 0, io.ErrUnexpectedEOF }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Viewed (0) -
misc/go_android_exec/main.go
"os/exec" "os/signal" "path" "path/filepath" "regexp" "runtime" "strconv" "strings" "sync" "syscall" ) func adbRun(args string) (int, error) { // The exit code of adb is often wrong. In theory it was fixed in 2016 // (https://code.google.com/p/android/issues/detail?id=3254), but it's // still broken on our builders in 2023. Instead, append the exitcode to // the output and parse it from there.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Aug 21 17:46:57 GMT 2023 - 15.3K bytes - Viewed (0) -
src/archive/tar/reader.go
// Prior to Go1.8, the Writer had a bug where it would output // an invalid tar file in certain rare situations because the logic // incorrectly believed that the old GNU format had a prefix field. // This is wrong and leads to an output file that mangles the // atime and ctime fields, which are often left unused. // // In order to continue reading tar files created by former, buggy
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 08 01:59:14 GMT 2024 - 26.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/armerror.s
BFX $12, $41, R2, R3 // ERROR "wrong width or LSB" BFX $12, $-2, R2 // ERROR "wrong width or LSB" BFXU $40, $4, R2, R3 // ERROR "wrong width or LSB" BFXU $-40, $4, R2 // ERROR "wrong width or LSB" BFX $-2, $4, R2, R3 // ERROR "wrong width or LSB" BFXU $4, R2, R5, R2 // ERROR "missing or wrong LSB" BFXU $4, R2, R5 // ERROR "missing or wrong LSB"
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Nov 03 14:06:21 GMT 2017 - 14.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
target = &a[2] break } p.errorf("wrong number of arguments to %s instruction", op) return case 4: if p.arch.Family == sys.S390X || p.arch.Family == sys.PPC64 { // 4-operand compare-and-branch. prog.From = a[0] prog.Reg = p.getRegister(prog, op, &a[1]) prog.AddRestSource(a[2]) target = &a[3] break } p.errorf("wrong number of arguments to %s instruction", op) return
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)