Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for dirsInit (0.21 sec)

  1. src/cmd/doc/dirs.go

    	hist   []Dir    // History of reported Dirs.
    	offset int      // Counter for Next.
    }
    
    var dirs Dirs
    
    // dirsInit starts the scanning of package directories in GOROOT and GOPATH. Any
    // extra paths passed to it are included in the channel.
    func dirsInit(extra ...Dir) {
    	if buildCtx.GOROOT == "" {
    		stdout, err := exec.Command("go", "env", "GOROOT").Output()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  2. src/cmd/doc/doc_test.go

    	buildCtx.GOPATH = ""
    	testGOPATH = true // force GOPATH mode; module test is in cmd/go/testdata/script/mod_doc.txt
    
    	// Set GOROOT in case runtime.GOROOT is wrong (for example, if the test was
    	// built with -trimpath). dirsInit would identify it using 'go env GOROOT',
    	// but we can't be sure that the 'go' in $PATH is the right one either.
    	buildCtx.GOROOT = testenv.GOROOT(nil)
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
  3. src/cmd/doc/main.go

    	fmt.Fprintf(os.Stderr, "\tgo help doc\n\n")
    	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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top