Coder Social home page Coder Social logo

digitorus / iso7064 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 7 KB

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

License: BSD 2-Clause "Simplified" License

Go 100.00%
golang go iso7064 iban lei istc isni validation

iso7064's Introduction

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")
}

iso7064's People

Contributors

vanbroup avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.