// String formats this update as human-readable text
String formats this update as human-readable text
// String formats this update as human - readable text
func (u *PackageUpdate) String() string {
	format := func(u *PackageUpdate) string {
		return fmt.Sprintf("%v -> %v", u.From, u.To)
	}
	if u.ConfigPackage == nil {
		return fmt.Sprintf("update(%v)", format(u))
	}
	return fmt.Sprintf("update(%v, config:%v)",
		format(u), format(u.ConfigPackage))
}
func ( u * PackageUpdate ) String ( ) string { format := func ( u * PackageUpdate ) string { return fmt . Sprintf ( " " , u . From , u . To ) } if u . ConfigPackage == nil { return fmt . Sprintf ( " " , format ( u ) ) } return fmt . Sprintf ( " " , format ( u ) , format ( u . ConfigPackage ) ) }
String formats this update as human-readable text
String formats this update as human - readable text