ident

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISBN

type ISBN string

ISBN represents an International Standard Book Number. When stringified, it prepends the "urn:isbn:" prefix.

func (ISBN) Label

func (i ISBN) Label() string

Label returns the identifier type name "ISBN".

func (ISBN) String

func (i ISBN) String() string

String returns the identifier as a URN string (e.g., "urn:isbn:9783161484100").

type Identifier

type Identifier interface {
	fmt.Stringer
	// Label returns the human-readable name of the identifier type (e.g., "UUID", "ISBN").
	Label() string
	// contains filtered or unexported methods
}

Identifier defines the interface for a unique publication ID. It implements fmt.Stringer to provide the formatted URN required for the EPUB package document.

type UUID

type UUID string

UUID represents a Universally Unique Identifier. When stringified, it prepends the "urn:uuid:" prefix.

func Default

func Default() UUID

Default generates a new, random version 4 UUID using the underlying uuid library.

func (UUID) Label

func (u UUID) Label() string

Label returns the identifier type name "UUID".

func (UUID) String

func (u UUID) String() string

String returns the identifier as a URN string (e.g., "urn:uuid:550e8400-e29b...").

Jump to

Keyboard shortcuts

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