Examples using... strings.TrimSpace()

Recent
TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode.
Fprint "pretty-prints" an AST node to output. It calls Config.Fprint with default settings. Note that gofmt uses tabs for indentation but spaces for alignment; use format.Node (package go/format) for output that matches gofmt.