An open API service indexing awesome lists of open source software.

https://github.com/cmdscale/corfin

Corporate Finance Go module
https://github.com/cmdscale/corfin

corporate-finance finance golang iso-6166

Last synced: 5 months ago
JSON representation

Corporate Finance Go module

Awesome Lists containing this project

README

          

# Corporate Finance Go module `cmdscale.com/corfin`

[![CmdScale Project](https://github.com/cmdscale/.github/raw/main/profile/assets/CmdShield.svg)](https://cmdscale.com/corfin)
[![Go Reference](https://pkg.go.dev/badge/cmdscale.com/corfin.svg)](https://pkg.go.dev/cmdscale.com/corfin)
[![CI Status](https://github.com/cmdscale/corfin/actions/workflows/main.yml/badge.svg)](https://github.com/cmdscale/corfin/actions?query=branch%3Amain)
[![Go Report Card](https://goreportcard.com/badge/cmdscale.com/corfin)](https://goreportcard.com/report/cmdscale.com/corfin)

## ISIN Validation

Ensures that the check-digit of a given [International Securities Identification Numbers (ISIN)](https://en.wikipedia.org/wiki/International_Securities_Identification_Number) is correct:

```go
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

```sh
go get cmdscale.com/corfin
```

## License

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