github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/dist/build.go (about)

     1  package main
     2  
     3  // Copyright 2012 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Version prints the Go version.
     8  func cmdversion() {
     9  	xflagparse(0)
    10  	xprintf("%s\n", findgoversion())
    11  }
    12  
    13  // Banner prints the 'now you've installed Go' banner.
    14  func cmdbanner() {
    15  	xflagparse(0)
    16  	banner()
    17  }
    18  
    19  // Clean deletes temporary objects.
    20  func cmdclean() {
    21  	xflagparse(0)
    22  	clean()
    23  }
    24  
    25  /*
    26   * command implementations
    27   */
    28  
    29  // The env command prints the default environment.
    30  func cmdenv() {
    31  	_cmdenv()
    32  }
    33  
    34  func cmdlist() {
    35  	_cmdlist()
    36  }
    37  
    38  func cmdtest() {
    39  	_cmdtest()
    40  }
    41  
    42  // Install installs the list of packages named on the command line.
    43  func cmdinstall() {
    44  	_cmdinstall()
    45  }
    46  
    47  func cmdbootstrap() {
    48  	_cmdbootstrap()
    49  }