Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for New (0.15 sec)

  1. src/arena/arena.go

    	return runtime_arena_heapify(s).(T)
    }
    
    //go:linkname reflect_arena_New reflect.arena_New
    func reflect_arena_New(a *Arena, typ any) any {
    	return runtime_arena_arena_New(a.a, typ)
    }
    
    //go:linkname runtime_arena_newArena
    func runtime_arena_newArena() unsafe.Pointer
    
    //go:linkname runtime_arena_arena_New
    func runtime_arena_arena_New(arena unsafe.Pointer, typ any) any
    
    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)
  2. misc/wasm/wasm_exec.js

    		throw new Error("globalThis.TextDecoder is not available, polyfill required");
    	}
    
    	const encoder = new TextEncoder("utf-8");
    	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) => {
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  3. doc/next/6-stdlib/99-minor/net/62254.md

    The new type [KeepAliveConfig] permits fine-tuning the keep-alive
    options for TCP connections, via a new [TCPConn.SetKeepAliveConfig]
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 205 bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    					t.Errorf("want=%q", data[0:len(written)])
    					t.Errorf("have=%q", written)
    				}
    			}
    		}
    	}
    }
    
    func TestWriterAppend(t *testing.T) {
    	got := new(bytes.Buffer)
    	var want []byte
    	rn := rand.New(rand.NewSource(0))
    	w := NewWriterSize(got, 64)
    	for i := 0; i < 100; i++ {
    		// Obtain a buffer to append to.
    		b := w.AvailableBuffer()
    		if w.Available() != cap(b) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/net/http/61472.md

    The new [Request.CookiesNamed] method retrieves all cookies that match the given name....
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 20 18:08:20 GMT 2024
    - 87 bytes
    - Viewed (0)
  6. doc/next/6-stdlib/99-minor/net/http/46443.md

    [Cookie] now preserves double quotes surrounding a cookie value.
    The new [Cookie.Quoted] field indicates whether the [Cookie.Value]
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 19 14:33:17 GMT 2024
    - 155 bytes
    - Viewed (0)
  7. src/cmd/api/api_test.go

    				"A",
    				"pkg syscall (darwin-amd64), type RawSockaddrInet6 struct",
    			},
    			ok:  false,
    			out: "+pkg syscall, type RawSockaddrInet6 struct\n",
    		},
    	}
    	for _, tt := range tests {
    		buf := new(strings.Builder)
    		gotOK := compareAPI(buf, tt.features, tt.required, tt.exception)
    		if gotOK != tt.ok {
    			t.Errorf("%s: ok = %v; want %v", tt.name, gotOK, tt.ok)
    		}
    		if got := buf.String(); got != tt.out {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  8. src/bytes/buffer_test.go

    func TestReadEmptyAtEOF(t *testing.T) {
    	b := new(Buffer)
    	slice := make([]byte, 0)
    	n, err := b.Read(slice)
    	if err != nil {
    		t.Errorf("read error: %v", err)
    	}
    	if n != 0 {
    		t.Errorf("wrong count; got %d want 0", n)
    	}
    }
    
    func TestUnreadByte(t *testing.T) {
    	b := new(Buffer)
    
    	// check at EOF
    	if err := b.UnreadByte(); err == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/swig/swig_test.go

    	}
    	swigDir := strings.TrimSpace(string(output))
    
    	_, err = os.Stat(filepath.Join(swigDir, "go"))
    	if err != nil {
    		t.Skip("swig is missing Go support")
    	}
    
    	// Check that swig has a new enough version.
    	// See https://golang.org/issue/22858.
    	out, err := exec.Command(swig, "-version").CombinedOutput()
    	if err != nil {
    		t.Skipf("failed to get swig version:%s\n%s", err, string(out))
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    (or the parameter lists if the block is the function body) with the same type,
    and at least one of the non-<a href="#Blank_identifier">blank</a> variables is new.
    As a consequence, redeclaration can only appear in a multi-variable short declaration.
    Redeclaration does not introduce a new variable; it just assigns a new value to the original.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top