Hi,
I have a string "hello <format> world" and I need to split it based on multiple characters "<> ". How do I get this ? The strings.Fields splits only by space. strings.Split too doesn't work. I saw that FieldsFunc whose documentation looks like it might solve this. But I am not able to understand it as there are no examples. Also, the helper text is a bit confusing to me and I am not able to understand it clearly.
Can someone help me with the code for understanding how to split by multiple delimitters ? It may be good, if you can also get this added to the FieldsFunc API as an example code.
Thanks.
Sankar