github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/formatters/memoryLimit.go (about)

     1  package formatters
     2  
     3  import "strconv"
     4  
     5  func InstanceMemoryLimit(limit int64) string {
     6  	if limit == -1 {
     7  		return "unlimited"
     8  	}
     9  
    10  	return strconv.FormatInt(limit, 10) + "M"
    11  }