meta

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package meta defines properties about this project.

Index

Constants

View Source
const VersionTagPrefix = "v"

VersionTagPrefix is the prefix used on Git tags corresponding to semantic version releases.

Variables

View Source
var Meta = &Properties{
	Name:           "addchain",
	FullName:       "mmcloughlin/addchain",
	Description:    "Cryptographic Addition Chain Generation in Go",
	BuildVersion:   buildversion,
	ReleaseVersion: releaseversion,
	ReleaseDate:    releasedate,
	ConceptDOI:     conceptdoi,
	DOI:            doi,
	ZenodoID:       zenodoid,
}

Meta defines specific properties for the current version of this software.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	// Name is the project name.
	Name string

	// FullName is the "owner/name" identifier for the project.
	FullName string

	// Description is the concise project headline.
	Description string

	// BuildVersion is the version that was built. Typically populated at build
	// time and will typically be empty for non-release builds.
	BuildVersion string

	// ReleaseVersion is the version of the most recent release.
	ReleaseVersion string

	// ReleaseDate is the date of the most recent release. (RFC3339 date format.)
	ReleaseDate string

	// ConceptDOI is the DOI for all versions.
	ConceptDOI string

	// DOI for the most recent release.
	DOI string

	// ZenodoID is the Zenodo deposit ID for the most recent release.
	ZenodoID string
}

Properties about this software package.

func (*Properties) CheckCitable

func (p *Properties) CheckCitable() error

CheckCitable checks whether a citation can be generated for this built version.

func (*Properties) Citation

func (p *Properties) Citation() (string, error)

Citation returns a BibTeX citation for the most recent release.

func (*Properties) ConceptDOIURL

func (p *Properties) ConceptDOIURL() string

ConceptDOIURL returns the DOI URL corresponding to the most recent release.

func (*Properties) DOIURL

func (p *Properties) DOIURL() string

DOIURL returns the DOI URL corresponding to the most recent release.

func (*Properties) IsRelease

func (p *Properties) IsRelease() bool

IsRelease reports whether the built version is a release.

func (*Properties) Module

func (p *Properties) Module() string

Module returns the Go module path.

func (*Properties) ReleaseTag

func (p *Properties) ReleaseTag() string

ReleaseTag returns the release tag corresponding to the most recent release.

func (*Properties) ReleaseTime

func (p *Properties) ReleaseTime() (time.Time, error)

ReleaseTime returns the release date as a time object.

func (*Properties) ReleaseURL

func (p *Properties) ReleaseURL() string

ReleaseURL returns the URL to the release page.

func (*Properties) RepositoryURL

func (p *Properties) RepositoryURL() string

RepositoryURL returns a URL to the hosted repository.

func (*Properties) Title

func (p *Properties) Title() string

Title is a full project title, suitable for a citation.

func (*Properties) WriteCitation

func (p *Properties) WriteCitation(w io.Writer) error

WriteCitation writes BibTeX citation for the most recent release to the given writer.

Jump to

Keyboard shortcuts

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