Can not understand why this happens but I would think that strings.Trim()
is character based, not regex based. But it seem if I want to remove
"?format=Entity" and my string just ends on "a", it removes 'a', which
should not happen I guess? Do I understand the function call incorrectly?
Or is just a bug in the api
Here is a play example:
While if it ends up "b", nothing is removed as exepcted:
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.