Description

TruncateString returns a truncated string with given limit, it returns input string if length is not reached limit.

TruncateString is referenced in 4 repositories

github.com/gogits/gogs github.com/davecheney/benchgogs

...