version/version.go
func Message(commit, version string) string {
	var c string
	var v string

	if commit == "" {
		c = undefined
	} else if len(commit) > 7 {
		c = commit[:7]
	} else {
		c = commit
	}

	if version == "" {
		v = undefined
	} else {
		v = version
	}

	return fmt.Sprintf("%s (%s)", v, c)
}
func Message(commit, version string) string {
	var c string
	var v string

	if commit == "" {
		c = undefined
	} else if len(commit) > 7 {
		c = commit[:7]
	} else {
		c = commit
	}

	if version == "" {
		v = undefined
	} else {
		v = version
	}

	return fmt.Sprintf("%s (%s)", v, c)
}
func Message ( commit , version string ) string { var c string var v string if commit == " " { c = undefined } else if len ( commit ) > 7 { c = commit [ : 7 ] } else { c = commit } if version == " " { v = undefined } else { v = version } return fmt . Sprintf ( " " , v , c ) }
// Message returns version with format
// `version (first seven characters of commit hash)`.
Message returns version with format version ( first seven characters of commit hash ) .