agent/version/formatting.go
func PrintVersion() int {
	cleanliness := ""
	if GitDirty {
		cleanliness = "\tDirty: true\n"
	}

	fmt.Printf(`Amazon ECS Agent:
	Version: %v
	Commit: %v
%v`, Version, GitShortHash, cleanliness)

	return exitcodes.ExitSuccess
}
func PrintVersion() int {
	cleanliness := ""
	if GitDirty {
		cleanliness = "\tDirty: true\n"
	}

	fmt.Printf(`Amazon ECS Agent:
	Version: %v
	Commit: %v
%v`, Version, GitShortHash, cleanliness)

	return exitcodes.ExitSuccess
}
func PrintVersion ( ) int { cleanliness := " " if GitDirty { cleanliness = " \t \n " } fmt . Printf ( `Amazon ECS Agent:
	Version: %v
	Commit: %v
%v` , Version , GitShortHash , cleanliness ) return exitcodes . ExitSuccess }
// PrintVersions prints the version information on stdout as a multi-line
// string. The output will look similar to the following:
//
//    Amazon ECS Agent:
//        Version: 0.0.3
//        Commit: 4bdc7fc
PrintVersions prints the version information on stdout as a multi - line string . The output will look similar to the following : Amazon ECS Agent : Version : 0 . 0 . 3 Commit : 4bdc7fc