ISBN13 check digit: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
Line 2,848: Line 2,848:


=={{header|Vlang}}==
=={{header|Vlang}}==
{{trans|go}}
{{trans|Go}}
<syntaxhighlight lang="vlang">fn check_isbn13(isbn13 string) bool {
<syntaxhighlight lang="vlang">
fn check_isbn13(isbn13 string) bool {
// remove any hyphens or spaces
// remove any hyphens or spaces
isbn := isbn13.replace('-','').replace(' ','')
isbn := isbn13.replace('-','').replace(' ','')
// check length == 13
// check length == 13
le := isbn.len
le := isbn.len