Parsing Social Media URLs in Go With Slinky

from blog Blog on hjr265.me, | ↗ original
Toph now allows programmers to show up to 5 social media URLs on their profile pages. Instead of showing the entire URL, I wanted to show the important bits from the URL. Screenshot of a profile panel from Toph To do that, I had to parse the social media URLs and extract information like the username or profile ID (when it is a GitHub, Twitter,...