Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ranaaditya/tbcd

Basic Implementation of Telephony BCD in pure GoLang
https://github.com/ranaaditya/tbcd

3gpp bcd epc hacktoberfest lte mobile-networking mobility-engineering rfcs standards tbcd

Last synced: about 1 month ago
JSON representation

Basic Implementation of Telephony BCD in pure GoLang

Awesome Lists containing this project

README

        

# tbcd
Basic Implementation of Telephony BCD in pure GoLang

[![forthebadge](https://forthebadge.com/images/badges/made-with-go.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/open-source.svg)](https://forthebadge.com)

### Building from source
Requires Go to be [installed](https://golang.org/doc/install) and [configured](https://golang.org/doc/install#testing)
```bash
go get github.com/ranaaditya/tbcd
```
### Usage
```golang
package main

import tbcd "github.com/ranaaditya/tbcd"

func main() {

var message string = "0123456789*#abc"
encodedmessage, err := tbcd.EncodeToTBCD(message)

if err == nil {
fmt.Println("Encoded Message in TBCD format is :", encodedmessage)
} else {
fmt.Println(err)
}

originalmessage, err1 := tbcd.DecodeToTBCD(encodedmessage)

if err1 == nil {
fmt.Println("Decoded message is :", originalmessage)
} else {
fmt.Println(err1)
}

}
```

#### Get it on [pkg.go.dev](https://pkg.go.dev/github.com/ranaaditya/tbcd)