- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 863 for Fn (0.05 sec)
-
test/fixedbugs/issue49512.go
return 0, 0 } type C struct { calls []func(int) (int, int) } func makeC() Funcs { return &C{} } func (c *C) Add(fn func(int) (int, int)) Funcs { c.calls = append(c.calls, fn) return c } func (c *C) Call() { for _, fn := range c.calls { fn(0) } } type Funcs interface { Add(func(int) (int, int)) Funcs Call() } func main() { s := &S{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 11 04:02:33 UTC 2021 - 809 bytes - Viewed (0) -
src/runtime/syscall_windows.go
return syscall_SyscallN(fn, args[:nargs]...) } //go:linkname syscall_Syscall9 syscall.Syscall9 //go:nosplit func syscall_Syscall9(fn, nargs, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, err uintptr) { args := [...]uintptr{a1, a2, a3, a4, a5, a6, a7, a8, a9} return syscall_SyscallN(fn, args[:nargs]...) } //go:linkname syscall_Syscall12 syscall.Syscall12 //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 16.6K bytes - Viewed (0) -
test/fixedbugs/issue33555.go
for i := 0; i < count; i++ { fmt.Fprintf(&buf, fn, i, i + 1) } fmt.Fprintf(&buf, fnlast, count) dir, err := ioutil.TempDir("", "issue33555") if err != nil { return err } defer os.RemoveAll(dir) fn := filepath.Join(dir, "x.go") if err := ioutil.WriteFile(fn, buf.Bytes(), 0644); err != nil { return err } out, err := exec.Command("go", "run", fn).CombinedOutput() if err != nil { return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
src/index/suffixarray/gen.go
log.Fatalf("cannot find end of func %s", name) } fn := string(data[:x+len("\n}\n")]) data = data[x+len("\n}"):] if strings.HasSuffix(name, "_32") { buf.WriteString(fix32.Replace(fn)) } if strings.HasSuffix(name, "_8_32") { // x_8_32 -> x_8_64 done above fn = fix8_32.Replace(stripByteOnly(fn)) buf.WriteString(fn) buf.WriteString(fix32.Replace(fn)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.9K bytes - Viewed (0) -
src/net/http/server_test.go
func BenchmarkServerMatch(b *testing.B) { fn := func(w ResponseWriter, r *Request) { fmt.Fprintf(w, "OK") } mux := NewServeMux() mux.HandleFunc("/", fn) mux.HandleFunc("/index", fn) mux.HandleFunc("/home", fn) mux.HandleFunc("/about", fn) mux.HandleFunc("/contact", fn) mux.HandleFunc("/robots.txt", fn) mux.HandleFunc("/products/", fn) mux.HandleFunc("/products/1", fn) mux.HandleFunc("/products/2", fn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 13:54:22 UTC 2024 - 7.3K bytes - Viewed (0) -
common/scripts/lint_copyright_banner.sh
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 11 23:32:21 UTC 2019 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/asm_amd64.s
MOVQ BX, (AX) RET TEXT crosscall2_trampoline<>(SB),NOSPLIT,$0-0 JMP crosscall2(SB) // Called by C code generated by cmd/cgo. // func crosscall2(fn, a unsafe.Pointer, n int32, ctxt uintptr) // Saves C callee-saved registers and calls cgocallback with three arguments. // fn is the PC of a func(a unsafe.Pointer) function. // This signature is known to SWIG, so we can't change it. TEXT crosscall2(SB),NOSPLIT,$0-0 PUSH_REGS_HOST_TO_ABI0()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/start_line_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 20 22:54:22 UTC 2023 - 2.6K bytes - Viewed (0) -
src/net/rawconn_windows_test.go
} } } if err := c.Control(fn); err != nil { return err } return operr } func controlOnConnSetup(network string, address string, c syscall.RawConn) error { var operr error var fn func(uintptr) switch network { case "tcp", "udp", "ip": return errors.New("ambiguous network: " + network) default: switch network[len(network)-1] { case '4': fn = func(s uintptr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 18 08:47:18 UTC 2020 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
call := node.(*ast.CallExpr) fn := typeutil.StaticCallee(pass.TypesInfo, call) if fn == nil { return // not a static call } if call.Ellipsis != token.NoPos { return // skip calls with "..." args } skipArgs, ok := kvFuncSkipArgs(fn) if !ok { // Not a slog function that takes key-value pairs. return } // Here we know that fn.Pkg() is "log/slog". if attrType == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.2K bytes - Viewed (0)