- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 235 for Variable (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/doc.go
// iteration and possibly observe the wrong value of the variable. // // Note: An iteration variable can only outlive a loop iteration in Go versions <=1.21. // In Go 1.22 and later, the loop variable lifetimes changed to create a new // iteration variable per loop iteration. (See go.dev/issue/60078.) // // In this example, all the deferred functions run after the loop has // completed, so all observe the final value of v [<go1.22]. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/loopbce.go
// variable, and, if so, extracts: // - the minimum bound // - the increment value // - the "next" value (SSA value that is Phi'd into the induction variable every loop) // // Currently, we detect induction variables that match (Phi min nxt), // with nxt being (Add inc ind). // If it can't parse the induction variable correctly, it returns (nil, nil, nil).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 17:37:47 UTC 2023 - 11.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/temp.go
} // stackBufAddr returns the expression &tmp, where tmp is a newly // allocated temporary variable of type [len]elem. This variable is // initialized, and elem must not contain pointers. func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr { if elem.HasPointers() { base.FatalfAt(base.Pos, "%v has pointers", elem) } tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/noder/codes.go
func (c codeExpr) Value() int { return int(c) } // TODO(mdempsky): Split expr into addr, for lvalues. const ( exprConst codeExpr = iota exprLocal // local variable exprGlobal // global variable or function exprCompLit exprFuncLit exprFieldVal exprMethodVal exprMethodExpr exprIndex exprSlice exprAssert exprUnaryOp exprBinaryOp exprCall exprConvert
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 20:07:46 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go
// checkLostCancel reports a failure to the call the cancel function // returned by context.WithCancel, either because the variable was // assigned to the blank identifier, or because there exists a // control-flow path from the call to a return statement and that path // does not "use" the cancel function. Any reference to the variable // counts as a use, even within a nested function literal. // If the variable's scope is larger than the function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
var HelpEnvironment = &base.Command{ UsageLine: "environment", Short: "environment variables", Long: ` The go command and the tools it invokes consult environment variables for configuration. If an environment variable is unset or empty, the go command uses a sensible default setting. To see the effective setting of the variable <NAME>, run 'go env <NAME>'. To change the default setting,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 36.3K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
(on Windows, a batch file). If one or more variable names is given as arguments, env prints the value of each named variable on its own line. The -json flag prints the environment in JSON format instead of as a shell script. The -u flag requires one or more arguments and unsets the default setting for the named environment variables, if one has been set with 'go env -w'.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/internal/cov/covcmd/cmddefs.go
// if panic paths are instrumented, or if the instrumenter // eliminates redundant counters). Strategy string // Prefix assigned to the names of counter variables generated // during instrumentation by cmd/cover. CounterPrefix string // Name chosen for the package ID variable generated during // instrumentation. PkgIdVar string // Counter mode (e.g. set/count/atomic) CounterMode string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 30 16:13:15 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue31092.go
// license that can be found in the LICENSE file. // Test cases for go.dev/issue/31092: Better synchronization of // parser after seeing an := rather than an = in a const, // type, or variable declaration. package p const _ /* ERROR unexpected := */ := 0 type _ /* ERROR unexpected := */ := int var _ /* ERROR unexpected := */ := 0 const _ int /* ERROR unexpected := */ := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 529 bytes - Viewed (0) -
src/cmd/link/testdata/dynimportvar/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that we can access dynamically imported variables. // We ues mach_task_self_ from darwin's system library. // Check that loading the variable from C and Go gets the // same result. //go:build darwin package main /* #include <mach/mach_init.h> unsigned int Mach_task_self(void) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 678 bytes - Viewed (0)