func (res Resource) RevisionString() string {
	switch res.Origin {
	case resource.OriginUpload:
		if res.IsPlaceholder() {
			return "-"
		}
		return res.TimestampGranular().UTC().String()
	case resource.OriginStore:
		return fmt.Sprintf("%d", res.Revision)
	default:
		// note: this should probably never happen.
		return "-"
	}
}
// RevisionString returns the human-readable revision for the resource.
RevisionString returns the human-readable revision for the resource.
// RevisionString returns the human - readable revision for the resource .
func (res Resource) RevisionString() string {
	switch res.Origin {
	case resource.OriginUpload:
		if res.IsPlaceholder() {
			return "-"
		}
		return res.TimestampGranular().UTC().String()
	case resource.OriginStore:
		return fmt.Sprintf("%d", res.Revision)
	default:
		return "-"
	}
}
func ( res Resource ) RevisionString ( ) string { switch res . Origin { case resource . OriginUpload : if res . IsPlaceholder ( ) { return " " } return res . TimestampGranular ( ) . UTC ( ) . String ( ) case resource . OriginStore : return fmt . Sprintf ( " " , res . Revision ) default : return " " } }
RevisionString returns the human-readable revision for the resource.
RevisionString returns the human - readable revision for the resource .
// note: this should probably never happen.