Skip to content

Latest commit

 

History

History
executable file
·
49 lines (31 loc) · 739 Bytes

isbn-doc.md

File metadata and controls

executable file
·
49 lines (31 loc) · 739 Bytes

isbn

import "isbn"

Package isbn is used to validate book id numbers.

Index

func IsValidISBN(isbn string) bool

IsValidISBN returns true if the book id number is valid.

Example

{
	fmt.Println(IsValidISBN("3-598-21508-8"))
	fmt.Println(IsValidISBN("3-598-21508-9"))
	fmt.Println(IsValidISBN("3-598-21507-X"))

}

Output

true
false
true

Generated by gomarkdoc