Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValue = fmt.Errorf("invalid ISBN value") ErrFormat = fmt.Errorf("invalid ISBN format") )
View Source
var ErrTodo = errors.New("todo")
Functions ¶
This section is empty.
Types ¶
type ISBN ¶
type ISBN [13]byte
func Parse ¶
Parse s into an ISBN 13 or returns an error. Supports the forms ISBN 13 XXXXXXXXXXXXX (XXX-X-XXXX-XXXX-X) and ISBN 10 XXXXXXXXXX (X-XXXX-XXXX-X)
func ParseBytes ¶
ParseBytes is like Parse, except it parses a byte slice instead of a string.
func (ISBN) MarshalJSON ¶
func (*ISBN) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.