Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 863 for Fn (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. common/scripts/lint_copyright_banner.sh

    # limitations under the License.
    
    set -e
    
    ec=0
    for fn in "$@"; do
      if ! grep -L -q -e "Apache License, Version 2" "${fn}"; then
        echo "Missing license: ${fn}"
        ec=1
      fi
    
      if ! grep -L -q -e "Copyright" "${fn}"; then
        echo "Missing copyright: ${fn}"
        ec=1
      fi
    done
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  7. 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)
  8. src/runtime/start_line_test.go

    	testCases := []struct {
    		name string
    		fn   func() int
    		want int
    	}{
    		{
    			name: "normal",
    			fn:   normalFunc,
    			want: 21,
    		},
    		{
    			name: "multiline-declaration",
    			fn:   multilineDeclarationFunc,
    			want: 30,
    		},
    		{
    			name: "blank-lines",
    			fn:   blankLinesFunc,
    			want: 35,
    		},
    		{
    			name: "inline",
    			fn:   inlineFunc,
    			want: 49,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:54:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top