Skip to content

FurqanSoftware/slinky

Repository files navigation

Slinky

Go Reference

Parse social media URLs in Go.

Usage

slinky.Parse("https://github.com/hjr265")
// Output:
// 	&URL{
// 		Service: slinky.GitHub,
// 		Type:    "User",
// 		ID:      "hjr265",
// 		Data:    map[string]string{,
// 			"username": "hjr265",
// 		},
//	}

URLs Supported

// 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"

Contributing

Contributions are welcome.

License

Slinky is available under the BSD (3-Clause) License.