forked from TrueCloudLab/frostfs-api-go
16 lines
183 B
Go
16 lines
183 B
Go
|
package refs
|
||
|
|
||
|
import (
|
||
|
"crypto/sha256"
|
||
|
|
||
|
"github.com/mr-tron/base58"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
ContainerID [sha256.Size]byte
|
||
|
)
|
||
|
|
||
|
func (c ContainerID) String() string {
|
||
|
return base58.Encode(c[:])
|
||
|
}
|