code: func isMemoryUnit(unit string) bool {
  	switch strings.TrimSuffix(strings.ToLower(unit), "s") {
  	case "byte", "b", "kilobyte", "kb", "megabyte", "mb", "gigabyte", "gb":
  		return true
  	}
  	return false
  }
docs: // isMemoryUnit returns whether a name is recognized as a memory size
  // unit.