citeproc

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL, style string) *Client

func (*Client) EncodePublication

func (c *Client) EncodePublication(p *models.Publication) ([]byte, error)

type Issued

type Issued struct {
	Raw string `json:"raw,omitempty"`
}

type Item

type Item struct {
	ID             string   `json:"id"`
	Type           string   `json:"type,omitempty"`
	Title          string   `json:"title,omitempty"`
	Author         []Person `json:"author,omitempty"`
	Edition        string   `json:"edition,omitempty"`
	Issued         Issued   `json:"issued,omitempty"`
	Publisher      string   `json:"publisher,omitempty"`
	PublisherPlace string   `json:"publisher-place,omitempty"`
	DOI            string   `json:"DOI,omitempty"`
	ISBN           string   `json:"ISBN,omitempty"`
}

type Person

type Person struct {
	Family string `json:"family,omitempty"`
	Given  string `json:"given,omitempty"`
}

type RequestBody

type RequestBody struct {
	Items []Item `json:"items"`
}

Jump to

Keyboard shortcuts

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