light modification
This commit is contained in:
parent
d9c9f05cd2
commit
a4a249bab8
@ -22,7 +22,7 @@ func (t StorageSize) String() string {
|
||||
return [...]string{"GB", "MB", "KB", "TB"}[t]
|
||||
}
|
||||
|
||||
func (t StorageSize) SizeList() []StorageSize {
|
||||
func SizeList() []StorageSize {
|
||||
return []StorageSize{GB, MB, KB, TB}
|
||||
}
|
||||
|
||||
@ -49,6 +49,6 @@ func (t StorageType) String() string {
|
||||
return [...]string{"FILE", "STREAM", "API", "DATABASE", "S3", "MEMORY", "HARDWARE"}[t]
|
||||
}
|
||||
|
||||
func (t StorageType) TypeList() []StorageType {
|
||||
func TypeList() []StorageType {
|
||||
return []StorageType{FILE, STREAM, API, DATABASE, S3, MEMORY, HARDWARE}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user