- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for initialize (0.3 sec)
-
src/cmd/cgo/doc.go
confuse the Go garbage collector; they are sometimes not really pointers but data structures encoded in a pointer type. All operations on these types must happen in C. The proper constant to initialize an empty such reference is 0, not nil. These special cases were introduced in Go 1.10. For auto-updating code from Go 1.9 and earlier, use the cftype or jni rewrites in the Go fix tool:
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) -
doc/go1.17_spec.html
Multiple variables on the left-hand side of a variable declaration initialized by single (multi-valued) expression on the right-hand side are initialized together: If any of the variables on the left-hand side is initialized, all those variables are initialized in the same step. </p> <pre> var x = a var a, b = f() // a and b are initialized together, before x is initialized </pre> <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) -
api/go1.5.txt
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 pkg go/types, type Info struct, Uses map[*ast.Ident]Object pkg go/types, type Initializer struct pkg go/types, type Initializer struct, Lhs []*Var
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) -
src/cmd/cgo/internal/test/gcc68255/a.go
// 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. // Test that it's OK to have C code that does nothing other than // initialize a global variable. This used to fail with gccgo. package gcc68255 /* #include "c.h" */ import "C" func F() bool { return C.v != nil
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 378 bytes - Viewed (0) -
src/bytes/buffer.go
// sufficient to initialize a [Buffer]. func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} } // NewBufferString creates and initializes a new [Buffer] using string s as its // initial contents. It is intended to prepare a buffer to read an existing // string. // // In most cases, new([Buffer]) (or just declaring a [Buffer] variable) is // sufficient to initialize a [Buffer].
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0) -
doc/go_spec.html
Multiple variables on the left-hand side of a variable declaration initialized by single (multi-valued) expression on the right-hand side are initialized together: If any of the variables on the left-hand side is initialized, all those variables are initialized in the same step. </p> <pre> var x = a var a, b = f() // a and b are initialized together, before x is initialized </pre> <p>
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 00:39:16 GMT 2024 - 279.6K bytes - Viewed (0) -
src/builtin/builtin.go
// constant. See the Go language specification's "Length and capacity" section for // details. func cap(v Type) int // The make built-in function allocates and initializes an object of type // slice, map, or chan (only). Like new, the first argument is a type, not a // value. Unlike new, make's return type is the same as the type of its
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 12.7K bytes - Viewed (0) -
api/go1.19.txt
pkg debug/pe, const IMAGE_SCN_CNT_CODE = 32 #51868 pkg debug/pe, const IMAGE_SCN_CNT_CODE ideal-int #51868 pkg debug/pe, const IMAGE_SCN_CNT_INITIALIZED_DATA = 64 #51868 pkg debug/pe, const IMAGE_SCN_CNT_INITIALIZED_DATA ideal-int #51868 pkg debug/pe, const IMAGE_SCN_CNT_UNINITIALIZED_DATA = 128 #51868 pkg debug/pe, const IMAGE_SCN_CNT_UNINITIALIZED_DATA ideal-int #51868
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Dec 02 16:29:41 GMT 2022 - 17.9K bytes - Viewed (1) -
doc/asm.html
<code>DATA</code> directives followed by a <code>GLOBL</code> directive. Each <code>DATA</code> directive initializes a section of the corresponding memory. The memory not explicitly initialized is zeroed. The general form of the <code>DATA</code> directive is <pre> DATA symbol+offset(SB)/width, value </pre> <p> which initializes the symbol memory at the given offset and width with the given value.
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/gcc68255.go
//go:build cgo package cgotest import ( "testing" "cmd/cgo/internal/test/gcc68255" ) func testGCC68255(t *testing.T) { if !gcc68255.F() { t.Error("C global variable was not initialized") }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 361 bytes - Viewed (0)