Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 243 for Node (0.32 sec)

  1. misc/wasm/wasm_exec_node.js

    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    			go._pendingEvent = { id: 0 };
    			go._resume();
    		}
    	});
    	return go.run(result.instance);
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 30 18:49:42 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Parse input AST and prepare Prog structure.
    
    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg go/types, type Info struct
    pkg go/types, type Info struct, Defs map[*ast.Ident]Object
    pkg go/types, type Info struct, Implicits map[ast.Node]Object
    pkg go/types, type Info struct, InitOrder []*Initializer
    pkg go/types, type Info struct, Scopes map[ast.Node]*Scope
    pkg go/types, type Info struct, Selections map[*ast.SelectorExpr]*Selection
    pkg go/types, type Info struct, Types map[ast.Expr]TypeAndValue
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    An optional prefix sets a non-decimal base: <code>0b</code> or <code>0B</code>
    for binary, <code>0</code>, <code>0o</code>, or <code>0O</code> for octal,
    and <code>0x</code> or <code>0X</code> for hexadecimal.
    A single <code>0</code> is considered a decimal zero.
    In hexadecimal literals, letters <code>a</code> through <code>f</code>
    and <code>A</code> through <code>F</code> represent values 10 through 15.
    </p>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Cgo enables the creation of Go packages that call C code.
    
    # Using cgo with the go command
    
    To use cgo write normal Go code that imports a pseudo-package "C".
    The Go code can then refer to types such as C.size_t, variables such
    as C.stdout, or functions such as C.putchar.
    
    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)
  6. misc/wasm/wasm_exec.js

    	const decoder = new TextDecoder("utf-8");
    
    	globalThis.Go = class {
    		constructor() {
    			this.argv = ["js"];
    			this.env = {};
    			this.exit = (code) => {
    				if (code !== 0) {
    					console.warn("exit code:", code);
    				}
    			};
    			this._exitPromise = new Promise((resolve) => {
    				this._resolveExitPromise = resolve;
    			});
    			this._pendingEvent = null;
    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)
  7. src/cmd/cgo/internal/test/issue18146.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo && !windows
    
    // Issue 18146: pthread_create failure during syscall.Exec.
    
    package cgotest
    
    import (
    	"bytes"
    	"crypto/md5"
    	"os"
    	"os/exec"
    	"runtime"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func test18146(t *testing.T) {
    	if testing.Short() {
    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)
  8. src/archive/zip/reader_test.go

    			return
    		}
    	}
    }
    
    func testFileMode(t *testing.T, f *File, want fs.FileMode) {
    	mode := f.Mode()
    	if want == 0 {
    		t.Errorf("%s mode: got %v, want none", f.Name, mode)
    	} else if mode != want {
    		t.Errorf("%s mode: want %v, got %v", f.Name, want, mode)
    	}
    }
    
    func TestInvalidFiles(t *testing.T) {
    	const size = 1024 * 70 // 70kb
    	b := make([]byte, size)
    
    	// zeroes
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/gcc68255/c.h

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 184 bytes
    - Viewed (0)
  10. misc/chrome/gophertool/README.txt

    To install:
    
    1) chrome://extensions/
    2) click "[+] Developer Mode" in top right
    3) "Load unpacked extension..."
    4) pick $GOROOT/misc/chrome/gophertool
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 23 21:27:51 GMT 2011
    - 194 bytes
    - Viewed (0)
Back to top