GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - digitorus/iso7064: Package iso7064 is a GO implementation of ISO 7064 used in validation of format like IBAN, ISTC, ISNI, LEI, etc.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
iso7064.go
iso7064.go
 
 
iso7064_test.go
iso7064_test.go
 
 

Repository files navigation

Golang ISO 7064 validator

Build & Test golangci-lint CodeQL Go Report Card Coverage Status Go Reference

This package providers a validtor for the ISO 7064 format like IBAN, ISTC, ISNI, LEI, etc. Currently this package is hardcoded to validate against MOD 97-10 using numeric strings with two check digits. Please feel free to contribute other ISO 7064 algorithms such as MOD 11-2, 37-2, 661-26 etc.

The initial version of this package is based the IBAN validator from https://github.com/almerlucke/go-iban

Contributions

We are looking for contribution to add the following functionality:

  • Calculate a new checksum value
  • Exctract the checksum value of a given value
  • Support other modes ISO 7064 algorithms such as MOD 11-2, 37-2, 661-26 etc.
  • Provider helpers (rearrangers) for specific implementations like IBAN
  • Add more implementation tests

Example

package main

import (
	"fmt"
	"github.com/digitorus/iso7064"
)

func main() {
	if !iso7064.IsValid("9845000Q555DEB9E2A69") {
		fmt.Printf("%v\n", err)
		return
	}

    	fmt.Println("Valid ISO 7064 value")
}

About

Package iso7064 is a GO implementation of ISO 7064 used in validation of format like IBAN, ISTC, ISNI, LEI, etc.

Topics

gogolangibanisniiso7064istcleivalidation

Resources

Readme
BSD-2-Clause license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.