forked from TrueCloudLab/frostfs-node
cc7a723d77
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
13 lines
241 B
Go
13 lines
241 B
Go
package blobovnicza
|
|
|
|
// ID represents Blobovnicza identifier.
|
|
type ID []byte
|
|
|
|
// NewIDFromBytes constructs an ID from a byte slice.
|
|
func NewIDFromBytes(v []byte) *ID {
|
|
return (*ID)(&v)
|
|
}
|
|
|
|
func (id ID) String() string {
|
|
return string(id)
|
|
}
|