# README
dataciteapi
This is a go package for working with the DataCite API. It is inspired by work my colleague Tom Morrel has done in Python. This package is meant to follow the guidelines for interacting with the public API at api.datacite.org. It also follows the same form as the golang CrossRef API developed previously at Caltech Library.
Go package example
appName := path.Base(os.Args[0])
client, err := dataciteapi.NewDataCiteClient(appName, "[email protected]")
if err != nil {
// handle error...
}
works, err := client.Works("10.1037/0003-066x.59.1.29")
if err != nil {
// handle error...
}
// continue processing your "works" result...
Command line example
dataciteapi -mailto="[email protected]" works "10.1037/0003-066x.59.1.29"
Reference
# Packages
No description provided by the author
# Functions
ArXivToDOI converts an arXiv id to a DOI (without the "https://doi.org/" prefix) formatted id per Instructions in the announcement that all arXiv gets DOI at https://blog.arxiv.org/2022/02/17/new-arxiv-articles-are-now-automatically-assigned-dois/.
ArXivURLtoArXiv will convert an absolute arxiv.org URL to an arXiv id format.
No description provided by the author
No description provided by the author
No description provided by the author
FmtHelp lets you process a text block with simple curly brace markup.
Checks if a string is an ArXiv id.
NewDataCiteClient creates a client and makes a request and returns the JSON source as a []byte or error if their is a problem.
# Constants
No description provided by the author
ReleaseDate, the date version.go was generated.
ReleaseHash, the Git hash when version.go was generated.
Version number of release.
# Structs
No description provided by the author
# Type aliases
Object is the general holder of what get back after unmarshaling json.