Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gofmtPath (0.26 sec)

  1. src/cmd/go/internal/fmtcmd/fmt.go

    		base.Run(gofmtArgs)
    	}
    }
    
    func gofmtPath() string {
    	gofmt := "gofmt" + cfg.ToolExeSuffix()
    
    	gofmtPath := filepath.Join(cfg.GOBIN, gofmt)
    	if _, err := os.Stat(gofmtPath); err == nil {
    		return gofmtPath
    	}
    
    	gofmtPath = filepath.Join(cfg.GOROOT, "bin", gofmt)
    	if _, err := os.Stat(gofmtPath); err == nil {
    		return gofmtPath
    	}
    
    	// fallback to looking for gofmt in $PATH
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 12:16:35 UTC 2022
    - 3K bytes
    - Viewed (0)
Back to top