- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 297 for init (0.1 sec)
-
src/cmd/go/internal/modcmd/init.go
must not already exist. Init accepts one optional argument, the module path for the new module. If the module path argument is omitted, init will attempt to infer the module path using import comments in .go files, vendoring tool configuration files (like Gopkg.lock), and the current directory (if in GOPATH). See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'. `, Run: runInit, } func init() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 15:51:46 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
// calling Init and Enabled, the main package can call this function. func WillBeEnabled() bool { if modRoots != nil || cfg.ModulesEnabled { // Already enabled. return true } if initialized { // Initialized, not enabled. return false } // Keep in sync with Init. Init does extra validation and prints warnings or // exits, so it can't call this function directly.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
} if as.X != nil && as.Y != nil { return convas(as, init) } return as } // walkAssignDotType walks an OAS2DOTTYPE node. func walkAssignDotType(n *ir.AssignListStmt, init *ir.Nodes) ir.Node { walkExprListSafe(n.Lhs, init) n.Rhs[0] = walkExpr(n.Rhs[0], init) return n } // walkAssignFunc walks an OAS2FUNC node. func walkAssignFunc(init *ir.Nodes, n *ir.AssignListStmt) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/gotoolchain_issue66175.txt
# When a toolchain download takes place, download 1.X.0 env GOTOOLCHAIN=auto rm go.mod go mod init m go mod edit -go=1.300 -toolchain=none ! go version stderr 'go: downloading go1.300.0 ' rm go.mod go mod init m go mod edit -go=1.21 -toolchain=none ! go version stderr 'go: downloading go1.21.0 ' rm go.mod go mod init m go mod edit -go=1.22 -toolchain=none ! go version stderr 'go: downloading go1.22.0 '
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 21:32:07 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
// is the most important case for us to get right. init := call.Init() var as2init *ir.AssignListStmt if len(init) == 2 && init[0].Op() == ir.OAS2 && init[1].Op() == ir.OINLMARK { as2init = init[0].(*ir.AssignListStmt) } else if len(init) == 1 && init[0].Op() == ir.OINLMARK { as2init = new(ir.AssignListStmt) } else { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/temp.go
) // initStackTemp appends statements to init to initialize the given // temporary variable to val, and then returns the expression &tmp. func initStackTemp(init *ir.Nodes, tmp *ir.Name, val ir.Node) *ir.AddrExpr { if val != nil && !types.Identical(tmp.Type(), val.Type()) { base.Fatalf("bad initial value for %L: %L", tmp, val) } appendWalkStmt(init, ir.NewAssignStmt(base.Pos, tmp, val))
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/walk/walk.go
} func mkcallstmt1(fn ir.Node, args ...ir.Node) ir.Node { var init ir.Nodes n := vmkcall(fn, nil, &init, args) if len(init) == 0 { return n } init.Append(n) return ir.NewBlockStmt(n.Pos(), init) } func chanfn(name string, n int, t *types.Type) ir.Node { if !t.IsChan() { base.Fatalf("chanfn %v", t) } switch n { case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
lhs[i] = obj var init syntax.Expr if i < len(values) { init = values[i] } check.constDecl(obj, last.Type, init, inherited) } // Constants must always have init values. check.arity(s.Pos(), s.NameList, values, true, inherited) // process function literals in init expressions before scope changes check.processDelayed(top)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
obj := NewConst(name.Pos(), pkg, name.Value, nil, iota) var init syntax.Expr if i < len(values) { init = values[i] } d := &declInfo{file: fileScope, vtyp: last.Type, init: init, inherited: inherited} check.declarePkgObj(name, obj, d) } // Constants must always have init values. check.arity(s.Pos(), s.NameList, values, true, inherited)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/initorder.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 22:06:51 UTC 2024 - 9.8K bytes - Viewed (0)