about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-08-19 17:37:23 +0200
committerEmile <hanemile@protonmail.com>2019-08-19 17:37:23 +0200
commit7adbe2591309ceece6e7d9ea0c45b214ced69baa (patch)
tree6ee2967cf96fc7819c6ef1a4818d9e0d28f04f3d
parent08297d68318d2165fc645754762dcddce42efbe2 (diff)
converted Launchpiece to a string
-rw-r--r--TLE.go2
-rw-r--r--convert.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/TLE.go b/TLE.go
index 967e762..117a8a4 100644
--- a/TLE.go
+++ b/TLE.go
@@ -75,7 +75,7 @@ type InternationalDesignator struct {
 	Launchnumber int `json:"launchnumber"`
 
 	// Piece of the launch
-	Launchpiece rune `json:"launchpiece"`
+	Launchpiece string `json:"launchpiece"`
 }
 
 // Epoch defines a moment in time
diff --git a/convert.go b/convert.go
index 837e478..e8e2def 100644
--- a/convert.go
+++ b/convert.go
@@ -114,7 +114,7 @@ func NewTLE(RawTLE string) (TLE, error) {
 			InternationalDesignator: InternationalDesignator{
 				Launchyear:   int8(LaunchYear),
 				Launchnumber: LaunchNumber,
-				Launchpiece:  rune(SplitTLE[1][14]),
+				Launchpiece:  string(SplitTLE[1][14]),
 			},
 			Epoch: Epoch{
 				Year:        int8(EpochYear),