Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Add example test for SetIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaupin committed Aug 25, 2016
1 parent 5b8d988 commit 8f7d1c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example_test.go
Expand Up @@ -121,3 +121,13 @@ func ExampleEpub_SetCover() {
coverCSSPath, _ := e.AddCSS("testdata/cover.css", "")
e.SetCover(coverImagePath, coverCSSPath)
}

func ExampleEpub_SetIdentifier() {
e := epub.NewEpub("My title")

// Set the identifier to a UUID
e.SetIdentifier("urn:uuid:a1b0d67e-2e81-4df5-9e67-a64cbe366809")

// Set the identifier to an ISBN
e.SetIdentifier("urn:isbn:9780101010101")
}

0 comments on commit 8f7d1c3

Please sign in to comment.