Help with old-style API

Hi
I’m working on an old-style API. Return I’m getting as item:value pairs separated by newlines

voipnumber:601234
pstnnumber:441133123456

I like to access each element like “voipnumber” and “pstnnumber” how can I do this?

Regads
mahan

Does this help you? https://play.golang.org/p/8nV84KX75Dx

1 Like

hi skillian,
thank you. very helpful.

regards
mahan

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.