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
- Host: GitHub
- URL: https://github.com/cmdscale/corfin
- Owner: cmdscale
- License: bsd-3-clause
- Created: 2024-10-14T06:40:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T08:27:12.000Z (over 1 year ago)
- Last Synced: 2025-04-22T10:38:11.265Z (about 1 year ago)
- Topics: corporate-finance, finance, golang, iso-6166
- Language: Go
- Homepage: https://cmdscale.com/corfin
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Corporate Finance Go module `cmdscale.com/corfin`
[](https://cmdscale.com/corfin)
[](https://pkg.go.dev/cmdscale.com/corfin)
[](https://github.com/cmdscale/corfin/actions?query=branch%3Amain)
[](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