input

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	ID        string `json:"id"`
	Name      `json:"name"`
	Reference `json:"reference"`
}

func New

func New(gnp gnparser.GNparser, opts ...Option) Input

type Name

type Name struct {
	NameString  string `json:"nameString,omitempty"`
	NameYear    int    `json:"year,omitempty"`
	Canonical   string `json:"canonical,omitempty"`
	NameAuthors string `json:"authors,omitempty"`
}

type Option

type Option func(*Input)

func OptID

func OptID(s string) Option

func OptNameString

func OptNameString(s string) Option

func OptNameYear

func OptNameYear(i int) Option

func OptRefString

func OptRefString(s string) Option

type Reference

type Reference struct {
	RefString    string `json:"refString,omitempty"`
	RefYearStart int    `json:"yearStart,omitempty"`
	RefYearEnd   int    `json:"yearEnd,omitempty"`
	RefAuthors   string `json:"authors,omitempty"`
	Journal      string `json:"journal,omitempty"`
	Volume       int    `json:"volume,omitempty"`
	PageStart    int    `json:"pageStart,omitempty"`
	PageEnd      int    `json:"pageEnd,omitempty"`
}

Jump to

Keyboard shortcuts

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