about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--TLE.go42
1 files changed, 24 insertions, 18 deletions
diff --git a/TLE.go b/TLE.go
index 5e7051c..a0a4605 100644
--- a/TLE.go
+++ b/TLE.go
@@ -13,26 +13,32 @@ type TLE struct {
 type TitleLine struct {
 	Satname string `json:"satname"`
 }
+
 type LineOne struct {
-	Linenumber              int8 `json:"linenumber"`
-	Satellitenumber         int  `json:"satellitenumber"`
-	Classification          rune `json:"classification"`
-	InternationalDesignator struct {
-		Launchyear   int8 `json:"launchyear"`
-		Launchnumber int  `json:"launchnumber"`
-		Launchpiece  rune `json:"launchpiece"`
-	} `json:"internationaldesignator"`
-	Epoch struct {
-		Year        int8    `json:"year"`
-		Dayfraction float64 `json:"dayfraction"`
-	}
-	Firstderiv       float64 `json:"firstderiv"`
-	Secondderiv      float64 `json:"secondderiv"`
-	BSTAR            float64 `json:"BSTAR"`
-	Numberzero       int8    `json:"numberzero"`
-	ElementSetNumber int     `json:"elementesetnumber"`
-	Checksum         int8    `json:"checksum"`
+	Linenumber              int8                    `json:"linenumber"`
+	Satellitenumber         int                     `json:"satellitenumber"`
+	Classification          rune                    `json:"classification"`
+	InternationalDesignator InternationalDesignator `json:"internationaldesignator"`
+	Epoch                   Epoch                   `json:"epoch"`
+	Firstderiv              float64                 `json:"firstderiv"`
+	Secondderiv             float64                 `json:"secondderiv"`
+	BSTAR                   float64                 `json:"BSTAR"`
+	Numberzero              int8                    `json:"numberzero"`
+	ElementSetNumber        int                     `json:"elementesetnumber"`
+	Checksum                int8                    `json:"checksum"`
+}
+
+type InternationalDesignator struct {
+	Launchyear   int8 `json:"launchyear"`
+	Launchnumber int  `json:"launchnumber"`
+	Launchpiece  rune `json:"launchpiece"`
 }
+
+type Epoch struct {
+	Year        int8    `json:"year"`
+	Dayfraction float64 `json:"dayfraction"`
+}
+
 type LineTwo struct {
 	Linenumber                       int8    `json:"linenumber"`
 	Satellitenumber                  int     `json:"satellitenumber"`