Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created March 18, 2015 23:45
Embed
What would you like to do?
for i := 0; i < 5; i++ {
if i < len(userProfile.BookList) {
book := bkz.FindBook(userProfile.BookList[i])
link := "<a href='books/" + book.ISBN + ".info'>"
str += link + book.Title + "</a><br><br>"
} else {
str += "<a href='/add-book'>Add Book!</a><br><br>"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment