Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: NormalizeID #62

Open
earthboundkid opened this issue Sep 5, 2023 · 0 comments
Open

feature request: NormalizeID #62

earthboundkid opened this issue Sep 5, 2023 · 0 comments

Comments

@earthboundkid
Copy link

It would be nice to have a helper function to turn a URL into a normalized ID. I've written it myself a couple of times for different projects, but it seems like something that could be built in. I'm happy to open a PR if you're interested in this. A couple of different APIs are possible but the simplest seems like

// NormalizeID turns a Google Sheet URL into a normalized ID.
// It returns a normalized ID as is.
// If s does not look like a Google Sheet URL or a normalized ID, it returns "".
func NormalizeID(s string) string 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant