Skip to content

cmdscale/corfin

Repository files navigation

Corporate Finance Go module cmdscale.com/corfin

CmdScale Project Go Reference CI Status Go Report Card

ISIN Validation

Ensures that the check-digit of a given International Securities Identification Numbers (ISIN) is correct:

package main

import "fmt"
import "cmdscale.com/corfin"

func main() {
	isin, err := corfin.NewISIN("DE000BAY0017") // non alphanumeric characters will be ignored
	if err != nil {
		fmt.Println(err) // isin is invalid
	}
	fmt.Println("ISIN is well-formed", isin.String())
}

Installation

go get cmdscale.com/corfin

License

BSD 3-Clause "New" or "Revised" License