Skip to content

feature request: NormalizeID #62

@earthboundkid

Description

@earthboundkid

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions