Closed mjwenzke closed 1 year ago
Thanks for the contribution @mjwenzke !
String
is generated like all the other types in this package see: here, so unfortunately we cant just add a method to one type as it would be overwritten next time the generator runs.
Its prob better to just call strings.Trim
after getting the value from the optional type
This PR adds a method to trim the whitespace from optional.String type. The built-in
strings.Trim()
function does not work for the optional.String types.After the
Trim()
function is called, the value ofo
isThis is a string.
. The outer whitespace has been trimmed.