- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for maine (0.1 sec)
-
src/cmd/doc/main.go
fmt.Fprintf(os.Stderr, "Flags:\n") flag.PrintDefaults() os.Exit(2) } func main() { log.SetFlags(0) log.SetPrefix("doc: ") telemetry.Start() dirsInit() err := do(os.Stdout, flag.CommandLine, os.Args[1:]) if err != nil { log.Fatal(err) } } // do is the workhorse, broken out of main to make testing easier. func do(writer io.Writer, flagSet *flag.FlagSet, args []string) (err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
return "false" case ternaryFlagTrue: return "true" } return "unset" } func (t *ternaryFlag) IsBoolFlag() bool { return true } // parse like a boolean flag // Main is the main entry point for the linker code. func Main(arch *sys.Arch, theArch Arch) { log.SetPrefix("link: ") log.SetFlags(0) telemetry.Start() telemetry.Inc("link/invocations") thearch = theArch ctxt := linknew(arch)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/trace/main.go
// Copyright 2014 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. package main import ( "cmd/internal/browser" "cmd/internal/telemetry" "flag" "fmt" "internal/trace" "internal/trace/raw" "internal/trace/traceviewer" "io" "log" "net" "net/http" _ "net/http/pprof" // Required to use pprof "os" "sync/atomic"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/link/link_test.go
} } // Compile a main package. write("main.go", "package main; func main() {}") importcfgfile := filepath.Join(tmpdir, "importcfg") testenv.WriteImportcfg(t, importcfgfile, nil, filepath.Join(tmpdir, "main.go")) runGo("tool", "compile", "-importcfg="+importcfgfile, "-p=main", "main.go") runGo("tool", "pack", "c", "main.a", "main.o") // Add an extra section with a short, non-.o name.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:02 UTC 2024 - 43.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
testenv.MustHaveGoBuild(t) const src0 = ` package main import "go/types" func main() { var info types.Info for _, obj := range info.Uses { _ = obj.Pkg() } } ` // like src0, but also imports go/importer const src1 = ` package main import ( "go/types" _ "go/importer" ) func main() { var info types.Info for _, obj := range info.Uses {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
-buildmode=exe Build the listed main packages and everything they import into executables. Packages not named main are ignored. -buildmode=pie Build the listed main packages and everything they import into position independent executables (PIE). Packages not named main are ignored. -buildmode=plugin Build the listed main packages, plus all packages that they
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/clean/clean.go
if err != nil { base.Errorf("go: %s: %v", p.Dir, err) return } sh := work.NewShell("", fmt.Print) packageFile := map[string]bool{} if p.Name != "main" { // Record which files are not in package main. // The others are. keep := func(list []string) { for _, f := range list { packageFile[f] = true } } keep(p.GoFiles) keep(p.CgoFiles)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
check.error(ident, InvalidInitDecl, "cannot declare init - must be func") return } // spec: "The main package must have package name main and declare // a function main that takes no arguments and returns no value." if ident.Value == "main" && check.pkg.name == "main" { check.error(ident, InvalidMainDecl, "cannot declare main - must be func") return } check.declare(check.pkg.scope, ident, obj, nopos)
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/go/internal/modload/import.go
} } return buf.String() } // A DirectImportFromImplicitDependencyError indicates a package directly // imported by a package or test in the main module that is satisfied by a // dependency that is not explicit in the main module's go.mod file. type DirectImportFromImplicitDependencyError struct { ImporterPath string ImportedPath string Module module.Version }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
} // addTransitiveLinkDeps adds to the link action a all packages // that are transitive dependencies of a1.Deps. // That is, if a is a link of package main, a1 is the compile of package main // and a1.Deps is the actions for building packages directly imported by // package main (what the compiler needs). The linker needs all packages // transitively imported by the whole program; addTransitiveLinkDeps // makes sure those are present in a.Deps.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0)