github.com/avence12/go-ethereum@v1.5.10-0.20170320123548-1dfd65f6d047/params/version.go (about)

     1  // Copyright 2016 The go-ethereum Authors
     2  // This file is part of go-ethereum.
     3  //
     4  // go-ethereum is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // go-ethereum is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12  // GNU General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU General Public License
    15  // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
    16  
    17  package params
    18  
    19  import "fmt"
    20  
    21  const (
    22  	VersionMajor = 1          // Major version component of the current release
    23  	VersionMinor = 6          // Minor version component of the current release
    24  	VersionPatch = 0          // Patch version component of the current release
    25  	VersionMeta  = "unstable" // Version metadata to append to the version string
    26  )
    27  
    28  // Version holds the textual version string.
    29  var Version = func() string {
    30  	v := fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
    31  	if VersionMeta != "" {
    32  		v += "-" + VersionMeta
    33  	}
    34  	return v
    35  }()