diff options
Diffstat (limited to 'go/storage/volume_id.go')
| -rw-r--r-- | go/storage/volume_id.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/go/storage/volume_id.go b/go/storage/volume_id.go deleted file mode 100644 index 0333c6cf0..000000000 --- a/go/storage/volume_id.go +++ /dev/null @@ -1,18 +0,0 @@ -package storage - -import ( - "strconv" -) - -type VolumeId uint32 - -func NewVolumeId(vid string) (VolumeId, error) { - volumeId, err := strconv.ParseUint(vid, 10, 64) - return VolumeId(volumeId), err -} -func (vid *VolumeId) String() string { - return strconv.FormatUint(uint64(*vid), 10) -} -func (vid *VolumeId) Next() VolumeId { - return VolumeId(uint32(*vid) + 1) -} |
