Trim Whitespaces From String
To remove whitespaces from a string, we can use strings.TrimSpace
function. It would remove leading and trailing spaces from the string.
Example
Source: YourBasic
Last updated
To remove whitespaces from a string, we can use strings.TrimSpace
function. It would remove leading and trailing spaces from the string.
Source: YourBasic
Last updated