bibtex

package module
v0.0.0-...-00d060d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2012 License: MIT Imports: 5 Imported by: 0

README

bibtex

BibTeX library for Go

status: pre-alpha, very naive

License: MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BibTeXEntry

type BibTeXEntry struct {
	Type       string
	Identifier string
	Attributes map[string]EntryItem
	// contains filtered or unexported fields
}

func NewBibTeXEntry

func NewBibTeXEntry(entryType, identifier string) BibTeXEntry

func ParseBibTeXEntries

func ParseBibTeXEntries(in string) []BibTeXEntry

func ParseBibTeXEntry

func ParseBibTeXEntry(in string) (BibTeXEntry, error)

func (*BibTeXEntry) AddNumericAttribute

func (bte *BibTeXEntry) AddNumericAttribute(key string, val int) error

func (*BibTeXEntry) AddStringAttribute

func (bte *BibTeXEntry) AddStringAttribute(key, val string) error

func (BibTeXEntry) PrettyPrint

func (bte BibTeXEntry) PrettyPrint() string

type EntryItem

type EntryItem struct {
	Type  EntryType
	Value string
}

func (EntryItem) String

func (ei EntryItem) String() string

type EntryType

type EntryType int
const (
	Numeric EntryType = iota
	String
)

Jump to

Keyboard shortcuts

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