Sign in
go
/
website
/
5872eae16bd2c34bdcad5e876a6d5979a1f15956
/
.
/
_content
/
blog
/
cover
/
pkg.go
blob: 6e67107595e60b43a08099f0583a3cbb398da755 [
file
] [
log
] [
blame
]
package size
func Size(a int) string {
switch {
case a < 0:
return "negative"
case a == 0:
return "zero"
case a < 10:
return "small"
case a < 100:
return "big"
case a < 1000:
return "huge"
}
return "enormous"
}