Categorygithub.com/caltechlibrary/crossrefapi
modulepackage
0.0.5
Repository: https://github.com/caltechlibrary/crossrefapi.git
Documentation: pkg.go.dev

# README

crossrefapi

This is a go package for working with the CrossRef API. It is inspired by the an excellent CrossRefAPI Python package listed in the CrossRef API docs. This package is meant to follow the "polite" guidelines for interacting with the public API at api.crossref.org.

Go package example

    client, err := crossrefapi.NewCrossRefClient("[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

    crossrefapi -mailto="[email protected]" works "10.1037/0003-066x.59.1.29"

Reference

# Packages

No description provided by the author

# Functions

NewCrossRefClient 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

# Structs

No description provided by the author

# Type aliases

Object is the general holder of what get back after unmarshaling json.