doitools

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 3 Imported by: 7

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)

Documentation

Index

Constants

View Source
const (
	Version = `v0.0.2`
)

Variables

This section is empty.

Functions

func NormalizeDOI

func NormalizeDOI(s string) (string, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL