v.io/jiri@v0.0.0-20160715023856-abfb8b131290/tool/doc.go (about)

     1  // Copyright 2015 The Vanadium 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 tool contains abstractions for working with developer
     6  // tools. In particular:
     7  //
     8  // 1) It contains global variables that can be used to store
     9  // attributes of a tool. Automated builds can set these values to
    10  // something meaningful as follows:
    11  //
    12  // go build -ldflags "-X v.io/jiri/tool.<key> <value>" v.io/jiri/<tool>
    13  //
    14  // 2) It provides the Context type, which encapsulates the state and
    15  // abstractions commonly accessed throughout the lifetime of a tool
    16  // invocation.
    17  package tool