Documentation
¶
Overview ¶
pkg/identifiers/identifiers.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeISBN ¶
NormalizeISBN removes hyphens, spaces, and common prefixes from an ISBN.
func ValidateISBN10 ¶
ValidateISBN10 validates an ISBN-10 checksum. ISBN-10 uses modulo 11 with weights 10,9,8,7,6,5,4,3,2,1.
func ValidateISBN13 ¶
ValidateISBN13 validates an ISBN-13 checksum. ISBN-13 uses alternating weights of 1 and 3.
Types ¶
type Type ¶
type Type string
Type represents the type of identifier.
func DetectType ¶
DetectType determines the identifier type from a value and optional scheme. If scheme is provided, it takes precedence. Otherwise, pattern matching is used.
Click to show internal directories.
Click to hide internal directories.