about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-08-19 17:35:57 +0200
committerEmile <hanemile@protonmail.com>2019-08-19 17:35:57 +0200
commit08297d68318d2165fc645754762dcddce42efbe2 (patch)
tree7ea0a14f1a0d669c319476f98242dc739d2405de
parent3fd00f20af5e0a9e2a4e30a2b74c038b87445587 (diff)
converted Classification to a string
-rw-r--r--TLE.go4
-rw-r--r--convert.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/TLE.go b/TLE.go
index 7a7672a..967e762 100644
--- a/TLE.go
+++ b/TLE.go
@@ -28,8 +28,8 @@ type LineOne struct {
 
 	// Catalog number defined by USSPACECOM
 	// A "U" indicates an unclassified object
-	SatelliteNumber int  `json:"satellitenumber"`
-	Classification  rune `json:"classification"`
+	SatelliteNumber int    `json:"satellitenumber"`
+	Classification  string `json:"classification"`
 
 	// International  Designator containing information about the launch
 	InternationalDesignator InternationalDesignator `json:"internationaldesignator"`
diff --git a/convert.go b/convert.go
index fb41fd9..837e478 100644
--- a/convert.go
+++ b/convert.go
@@ -110,7 +110,7 @@ func NewTLE(RawTLE string) (TLE, error) {
 		LineOne: LineOne{
 			Linenumber:      int8(LineOneLinenumber),
 			SatelliteNumber: SatelliteNumber,
-			Classification:  rune(SplitTLE[1][7]),
+			Classification:  string(SplitTLE[1][7]),
 			InternationalDesignator: InternationalDesignator{
 				Launchyear:   int8(LaunchYear),
 				Launchnumber: LaunchNumber,