Parse social media URLs in Go.
slinky.Parse("https://github.com/hjr265")
// Output:
// &URL{
// Service: slinky.GitHub,
// Type: "User",
// ID: "hjr265",
// Data: map[string]string{,
// "username": "hjr265",
// },
// }
// Facebook
"facebook.com"
"www.facebook.com"
"web.facebook.com"
"fb.me"
// FLOSS.social
"floss.social"
// Fostodon
"fosstodon.org"
// GitHub
"github.com"
"*.github.io"
// Instagram
"instagram.com"
"www.instagram.com"
// LinkedIn
"linkedin.com"
"www.linkedin.com"
// Telegram
"t.me"
// Twitter
"twitter.com"
// YouTube
"youtube.com"
"www.youtube.com"
Contributions are welcome.
Slinky is available under the BSD (3-Clause) License.