Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for handlers (0.2 sec)

  1. misc/wasm/wasm_exec.js

    					add: (a, b) => a + b,
    				},
    				gojs: {
    					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/cmd/asm/internal/asm/operand_test.go

    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    )
    
    // A simple in-out test: Do we print what we parse?
    
    func setArch(goarch string) (*arch.Arch, *obj.Link) {
    	buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
    	buildcfg.GOARCH = goarch
    	architecture := arch.Set(goarch, false)
    	if architecture == nil {
    		panic("asm: unrecognized architecture " + goarch)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		},
    		// ReadLine doesn't fit the data/pattern easily
    		// so we leave it out. It should be covered via
    		// the ReadSlice test since ReadLine simply calls
    		// ReadSlice, and it's that function that handles
    		// the last byte.
    	}
    
    	// Try all readers with UnreadByte.
    	for rno, read := range readers {
    		// Some input data that is longer than the minimum reader buffer size.
    		const n = 10
    		var buf bytes.Buffer
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    and of course there is nothing stopping the C code from doing anything
    it likes. However, programs that break these rules are likely to fail
    in unexpected and unpredictable ways.
    
    The runtime/cgo.Handle type can be used to safely pass Go values
    between Go and C. See the runtime/cgo package documentation for details.
    
    Note: the current implementation has a bug. While Go code is permitted
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/arch.go

    	for i := riscv.REG_X0; i <= riscv.REG_X31; i++ {
    		// Disallow X3 in shared mode, as this will likely be used as the
    		// GP register, which could result in problems in non-Go code,
    		// including signal handlers.
    		if shared && i == riscv.REG_GP {
    			continue
    		}
    		if i == riscv.REG_TP || i == riscv.REG_G {
    			continue
    		}
    		name := fmt.Sprintf("X%d", i-riscv.REG_X0)
    		register[name] = int16(i)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  6. doc/next/6-stdlib/2-unique.md

    `Make[T]` function, which produces a reference to a canonical copy of
    the value in the form of a `Handle[T]`.
    Two `Handle[T]` are equal if and only if the values used to produce the
    handles are equal, allowing programs to deduplicate values and reduce
    their memory footprint.
    Comparing two `Handle[T]` values is efficient, reducing down to a simple
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 13:37:36 GMT 2024
    - 579 bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    	"strconv"
    	"strings"
    	"text/scanner"
    
    	"cmd/asm/internal/flags"
    	"cmd/internal/objabi"
    	"cmd/internal/src"
    )
    
    // Input is the main input: a stack of readers and some macro definitions.
    // It also handles #include processing (by pushing onto the input stack)
    // and parses and instantiates macro definitions.
    type Input struct {
    	Stack
    	includes        []string
    	beginningOfLine bool
    	ifdefStack      []bool
    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)
  8. misc/chrome/gophertool/gopher.js

    var pkgRE = /^[a-z0-9_\/]+$/;
    
    function urlForInput(t) {
        if (!t) {
            return null;
        }
    
        if (numericRE.test(t)) {
            if (t < 150000) {
                // We could use the golang.org/cl/ handler here, but
                // avoid some redirect latency and go right there, since
                // one is easy. (no server-side mapping)
                return "https://github.com/golang/go/issues/" + t;
            }
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sat Jul 11 14:36:33 GMT 2015
    - 1.2K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	realName, realSize := hdr.Name, hdr.Size
    
    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    	/*
    		// Handle sparse files.
    		var spd sparseDatas
    		var spb []byte
    		if len(hdr.SparseHoles) > 0 {
    			sph := append([]sparseEntry{}, hdr.SparseHoles...) // Copy sparse map
    			sph = alignSparseEntries(sph, hdr.Size)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. src/bytes/bytes.go

    		}
    		if asciiSpace[c] == 0 {
    			break
    		}
    	}
    
    	// At this point s[start:stop] starts and ends with an ASCII
    	// non-space bytes, so we're done. Non-ASCII cases have already
    	// been handled above.
    	if start == stop {
    		// Special case to preserve previous TrimLeftFunc behavior,
    		// returning nil instead of empty slice if all spaces.
    		return nil
    	}
    	return s[start:stop]
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top