func (i ID) String() string {
	var (
		indirectPrefix    string
		compressionPrefix string
	)

	switch i.indirection {
	case 0:
		// no prefix
	case 1:
		indirectPrefix = "I"
	default:
		indirectPrefix = strings.Repeat("I", int(i.indirection))
	}

	if i.compression {
		compressionPrefix = "Z"
	}

	return indirectPrefix + compressionPrefix + i.cid.String()
}
// String returns string representation of ObjectID that is suitable for displaying in the UI.
String returns string representation of ObjectID that is suitable for displaying in the UI.
// String returns string representation of ObjectID that is suitable for displaying in the UI .
func (i ID) String() string {
	var (
		indirectPrefix    string
		compressionPrefix string
	)
	switch i.indirection {
	case 0:
	case 1:
		indirectPrefix = "I"
	default:
		indirectPrefix = strings.Repeat("I", int(i.indirection))
	}
	if i.compression {
		compressionPrefix = "Z"
	}
	return indirectPrefix + compressionPrefix + i.cid.String()
}
func ( i ID ) String ( ) string { var ( indirectPrefix string compressionPrefix string ) switch i . indirection { case 0 : case 1 : indirectPrefix = " " default : indirectPrefix = strings . Repeat ( " " , int ( i . indirection ) ) } if i . compression { compressionPrefix = " " } return indirectPrefix + compressionPrefix + i . cid . String ( ) }
String returns string representation of ObjectID that is suitable for displaying in the UI.
String returns string representation of ObjectID that is suitable for displaying in the UI .
// no prefix