How to trim leading and trailing white spaces of a string? June 1, 2022 by IT Nursery Which is the effective way to trim the leading and trailing white spaces of string variable in Go? 8 Answers 8