Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for function (0.17 sec)

  1. doc/next/6-stdlib/99-minor/go/types/65772.md

    The [Func] type, which represents a function or method symbol, now
    has a [Func.Signature] method that returns the function's type, which
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 19 14:33:17 GMT 2024
    - 161 bytes
    - Viewed (0)
  2. src/arena/arena.go

    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    // to more easily let an arena-allocated value out-live its arena.
    // T must be a pointer, a slice, or a string, otherwise this function will panic.
    func Clone[T any](s T) T {
    	return runtime_arena_heapify(s).(T)
    }
    
    //go:linkname reflect_arena_New reflect.arena_New
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/cmd/api/testdata/src/pkg/p1/p1.go

    	// Deprecated: use B.
    	A         = 1
    	a         = 11
    	A64 int64 = 1
    
    	AIsLowerA = a // previously declared
    )
    
    const (
    	ConversionConst = MyInt(5)
    )
    
    // Variables from function calls.
    var (
    	V = ptwo.F()
    	// Deprecated: use WError.
    	VError = BarE()
    	V1     = Bar1(1, 2, 3)
    	V2     = ptwo.G()
    )
    
    // Variables with conversions:
    var (
    	StrConv  = string("foo")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  4. misc/chrome/gophertool/background.js

    chrome.omnibox.onInputEntered.addListener(function(t) {
      var url = urlForInput(t);
      if (url) {
        chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) {
          if (!tab) return;
          chrome.tabs.update(tab.id, { "url": url, "selected": true });
        });
      }
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 18 18:14:37 GMT 2019
    - 286 bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/reflect/61308.md

    The [SliceAt(typ Type, p unsafe.Pointer, len int)] function
    returns a Value representing a slice whose underlying array starts
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 170 bytes
    - Viewed (0)
  6. misc/wasm/wasm_exec.html

    			mod = result.module;
    			inst = result.instance;
    			document.getElementById("runButton").disabled = false;
    		}).catch((err) => {
    			console.error(err);
    		});
    
    		async function run() {
    			console.clear();
    			await go.run(inst);
    			inst = await WebAssembly.instantiate(mod, go.importObject); // reset instance
    		}
    	</script>
    
    	<button onClick="run();" id="runButton" disabled>Run</button>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Oct 02 17:25:11 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  7. misc/chrome/gophertool/popup.js

    function openURL(url) {
      chrome.tabs.create({ "url": url })
    }
    
    function addLinks() {
      var links = document.getElementsByTagName("a");
      for (var i = 0; i < links.length; i++) {
        var url = links[i].getAttribute("url");
        if (url)
          links[i].addEventListener("click", function () {
            openURL(this.getAttribute("url"));
          });
      }
    }
    
    window.addEventListener("load", function () {
      addLinks();
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Oct 21 17:05:21 GMT 2012
    - 1020 bytes
    - Viewed (0)
  8. src/archive/tar/strconv.go

    func fitsInBase256(n int, x int64) bool {
    	binBits := uint(n-1) * 8
    	return n >= 9 || (x >= -1<<binBits && x < 1<<binBits)
    }
    
    // parseNumeric parses the input as being encoded in either base-256 or octal.
    // This function may return negative numbers.
    // If parsing fails or an integer overflow occurs, err will be set.
    func (p *parser) parseNumeric(b []byte) int64 {
    	// Check for base-256 (binary) format first.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/callback_windows.go

    #ifdef _AMD64_
    	CONTEXT context;
    	RtlCaptureContext(&context);
    	ULONG64 ControlPc;
    	ControlPc = context.Rip;
    	int i;
    	for (i = 0; i < FramesToCapture; i++) {
    		PRUNTIME_FUNCTION FunctionEntry;
    		ULONG64 ImageBase;
    		VOID *HandlerData;
    		ULONG64 EstablisherFrame;
    
    		FunctionEntry = RtlLookupFunctionEntry(ControlPc, &ImageBase, NULL);
    
    		if (!FunctionEntry) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/slices/65238.md

    The [Repeat] function returns a new slice that repeats the
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 101 bytes
    - Viewed (0)
Back to top