code: func (m Memory) String() string {
  	v := uint(m)
  
  	switch {
  	case v < KB:
  		return fmt.Sprintf("%d", v)
  	case v < MB:
  		return fmtMemory(m, KB)
  	case v < GB:
  		return fmtMemory(m, MB)
  	case v < TB:
  		return fmtMemory(m, GB)
  	}
  
  	return fmt.Sprintf("%d", v)
  }
docs: // String returns the string representation of Memory, using the following
  // algorithm:
  //
  // * If the memory is less than 1 KB, it will return "x".
  // * If the memory is less than 1 MB, it will return "xKB".
  // * If the memory is less than 1 GB, it will return "xMB".
  // * etc