Skip to content

caltechlibrary/doitools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)