github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/go/internal/base/tool.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package base
     6  
     7  // Tool returns the path to the named tool (for example, "vet").
     8  // If the tool cannot be found, Tool exits the process.
     9  func Tool(toolName string) string
    10  
    11  // ToolPath returns the path at which we expect to find the named tool
    12  // (for example, "vet"), and the error (if any) from statting that path.
    13  func ToolPath(toolName string) (string, error)