From 08297d68318d2165fc645754762dcddce42efbe2 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 19 Aug 2019 17:35:57 +0200 Subject: converted Classification to a string --- TLE.go | 4 ++-- convert.go | 2 +- 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, -- cgit 1.4.1