Discover Packages
github.com/gamezop/banking
package
module
Version:
v0.0.0-...-97dedb3
Opens a new window with list of versions in this module.
Published: Nov 24, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
banking
Banking library for Go.
Install
go get github.com/gamezop/banking
Docs
http://godoc.org/github.com/gamezop/banking
Iban
package main
import (
"fmt"
"log"
"github.com/gamezop/banking/iban"
)
var (
testIban = iban.MustParse("BE68539007547034")
)
func main() {
ibn, err := iban.Parse("BE68539007547034")
if err != nil {
log.Fatal(err)
}
fmt.Println(ibn.BankCode())
fmt.Println(ibn.AccountNumber())
err = iban.Validate("BE68539007547034")
if err != nil {
log.Fatal(err)
}
}
Swift
package main
import (
"fmt"
"log"
"github.com/gamezop/banking/swift"
)
var (
testSwift = swift.MustParse("DEUTDEFF500")
)
func main() {
swft, err := swift.Parse("DEUTDEFF500")
if err != nil {
log.Fatal(err)
}
fmt.Println(swft.BankCode())
fmt.Println(swft.CountryCode())
err = swift.Validate("DEUTDEFF500")
if err != nil {
log.Fatal(err)
}
}
Expand ▾
Collapse ▴
Documentation
¶
Package banking provides banking utilities.
IBAN:
package main
import (
"fmt"
"log"
"github.com/gamezop/banking/iban"
)
var (
testIban = iban.MustParse("BE68539007547034")
)
func main() {
ibn, err := iban.Parse("BE68539007547034")
if err != nil {
log.Fatal(err)
}
fmt.Println(ibn.BankCode())
fmt.Println(ibn.AccountNumber())
err = iban.Validate("BE68539007547034")
if err != nil {
log.Fatal(err)
}
}
Swift:
package main
import (
"fmt"
"log"
"github.com/gamezop/banking/swift"
)
var (
testSwift = swift.MustParse("DEUTDEFF500")
)
func main() {
swft, err := swift.Parse("DEUTDEFF500")
if err != nil {
log.Fatal(err)
}
fmt.Println(swft.BankCode())
fmt.Println(swft.CountryCode())
err = swift.Validate("DEUTDEFF500")
if err != nil {
log.Fatal(err)
}
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.