Categorygithub.com/caltechlibrary/doitools
modulepackage
0.0.3
Repository: https://github.com/caltechlibrary/doitools.git
Documentation: pkg.go.dev

# README

doitools

doitools is a Go package for working with DOI. E.g. It is used by other Caltech Library Go based projects.

    doi, err := doitools.NormalizeDOI("https://dx.doi.org/10.1021/acsami.7b15651")
    if err != nil {
        // handle error
    }
    // this should print out "10.1021/acsami.7b15651"
    fmt.Printf("DOI is %q", doi)

# Functions

NormaliseDOI can take a URL to a DOI and returns just the DOI portion or an error message.

# Constants

No description provided by the author