- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for OK (0.15 sec)
-
src/archive/tar/strconv_test.go
{0, 12, true}, {math.MinInt64, 12, true}, } for _, v := range vectors { ok := fitsInBase256(v.width, v.in) if ok != v.ok { t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok) } } } func TestParseNumeric(t *testing.T) { vectors := []struct { in string want int64 ok bool }{ // Test base-256 (binary) encoded values. {"", 0, true}, {"\x80", 0, true},
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Tue Feb 09 05:28:50 GMT 2021 - 14K bytes - Viewed (0) -
src/cmd/cgo/ast.go
if decl.Recv != nil && len(decl.Recv.List) > 0 { recvType := decl.Recv.List[0].Type if recvType != nil { t := recvType if star, ok := unparen(t).(*ast.StarExpr); ok { t = star.X } if sel, ok := unparen(t).(*ast.SelectorExpr); ok { var buf strings.Builder format.Node(&buf, fset, recvType) error_(sel.Pos(), `cannot define new methods on non-local type %s`, &buf) }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
src/cmd/api/api_test.go
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Jan 04 17:31:12 GMT 2024 - 7.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue18146.go
// We are starting so many processes that on // some systems (problem seen on Darwin, // Dragonfly, OpenBSD) the fork call will fail // with EAGAIN. if pe, ok := err.(*os.PathError); ok { err = pe.Err } if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) { time.Sleep(time.Millisecond) continue } t.Error(err) return }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Tue Sep 05 23:35:32 GMT 2023 - 2.8K bytes - Viewed (0) -
src/all.bat
reserved. L2::: Use of this source code is governed by a BSD-style L3::: license that can be found in the LICENSE file. L4: L5:@echo off L6: L7:setlocal L8: L9:if exist make.bat goto ok L10:echo all.bat must be run from go\src L11::: cannot exit: would kill parent command interpreter L12:goto end L13::ok L14: L15:call .\make.bat --no-banner --no-local L16:if %GOBUILDFAIL%==1 goto end L17:call .\run.bat --no-rebuild --no-local L18:if %GOBUILDFAIL%==1 goto end L19:"%GOTOOLDIR%/dist" banner ...
Batch File - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Apr 19 14:36:22 GMT 2023 - 543 bytes - Viewed (0) -
src/archive/zip/register.go
panic("compressor already registered") } } func compressor(method uint16) Compressor { ci, ok := compressors.Load(method) if !ok { return nil } return ci.(Compressor) } func decompressor(method uint16) Decompressor { di, ok := decompressors.Load(method) if !ok { return nil } return di.(Decompressor)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 3.7K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.go
fatal("usage: callback testname") } switch os.Args[1] { default: fatal("unknown test %q", os.Args[1]) case "Call": testCall() case "Callback": testCallback() } println("OK") } func fatal(f string, args ...any) { fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...)) os.Exit(1) } type GoCallback struct{} func (p *GoCallback) Run() string { return "GoCallback.Run" }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 1K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0) -
src/cmd/asm/internal/arch/arm.go
// we return the opcode for MRC so that asm doesn't need to import obj/arm. func ARMMRCOffset(op obj.As, cond string, x0, x1, x2, x3, x4, x5 int64) (offset int64, op0 obj.As, ok bool) { op1 := int64(0) if op == arm.AMRC { op1 = 1 } bits, ok := ParseARMCondition(cond) if !ok { return } offset = (0xe << 24) | // opcode (op1 << 20) | // MCR/MRC ((int64(bits) ^ arm.C_SCOND_XOR) << 28) | // scond
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Nov 18 17:59:44 GMT 2022 - 6.1K bytes - Viewed (0) -
src/bytes/buffer.go
func (b *Buffer) grow(n int) int { m := b.Len() // If buffer is empty, reset to recover space. if m == 0 && b.off != 0 { b.Reset() } // Try to grow by means of a reslice. if i, ok := b.tryGrowByReslice(n); ok { return i } if b.buf == nil && n <= smallBufferSize { b.buf = make([]byte, n, smallBufferSize) return 0 } c := cap(b.buf) if n <= c/2-m {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0)