mirror of
https://github.com/NullHypothesis/censorbib.git
synced 2025-07-22 06:09:10 -04:00

bibliogra.py requires Python 2, which is a pain to deal with. This commit adds a Go tool that compiles CensorBib from BibTeX to HTML. The tool does the bare minimum and is quite strict in the BibTeX format it expects.
23 lines
766 B
Go
23 lines
766 B
Go
// Package bibtex is a bibtex parser written in Go.
|
|
//
|
|
// The package contains a simple parser and data structure to represent bibtex
|
|
// records.
|
|
//
|
|
// # Supported syntax
|
|
//
|
|
// The basic syntax is:
|
|
//
|
|
// @BIBTYPE{IDENT,
|
|
// key1 = word,
|
|
// key2 = "quoted",
|
|
// key3 = {quoted},
|
|
// }
|
|
//
|
|
// where BIBTYPE is the type of document (e.g. inproceedings, article, etc.)
|
|
// and IDENT is a string identifier.
|
|
//
|
|
// The bibtex format is not standardised, this parser follows the descriptions
|
|
// found in the link below. If there are any problems, please file any issues
|
|
// with a minimal working example at the GitHub repository.
|
|
// http://maverick.inria.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html
|
|
package bibtex // import "github.com/nickng/bibtex"
|