Adding a truncate method to a String in Groovy


/ Published in: Groovy
Save to your folder(s)

this truncates a string to a provided length and adds "..." to the end to show that it was truncated.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.