Exposed public functions

This commit is contained in:
Christopher Ramey 2019-10-01 12:28:35 -08:00 committed by Christopher Ramey
parent d2f04934ee
commit f1becfdb83

6
sdb.go
View File

@ -1,4 +1,4 @@
package main package sdb
import ( import (
"bytes" "bytes"
@ -23,7 +23,7 @@ func main() {
os.Args[1], err.Error()) os.Args[1], err.Error())
} }
sdb, err := parseSDB(raw) sdb, err := ParseSDB(raw)
if err != nil { if err != nil {
fmt.Fprintf(os.Stderr, fmt.Fprintf(os.Stderr,
"%s\n", err.Error()) "%s\n", err.Error())
@ -141,7 +141,7 @@ type MOConfirmation struct {
Status byte Status byte
} }
func parseSDB(raw []byte) (*IridiumSDB, error) { func ParseSDB(raw []byte) (*IridiumSDB, error) {
raw_len := len(raw) raw_len := len(raw)
if raw_len < 3 { if raw_len < 3 {
return nil, fmt.Errorf("message structure too short: %d bytes", return nil, fmt.Errorf("message structure too short: %d bytes",