diff options
author | Emile <hanemile@protonmail.com> | 2019-08-19 14:58:09 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-08-19 14:58:09 +0200 |
commit | 57b6c5246e9348cb4dd5851bfc57affcd326c932 (patch) | |
tree | 4e896f88d90823604b339007f91a3a6f7de07ac7 | |
parent | b72f0449279b2e890540e21674776857bd873039 (diff) |
moved types out of the struct
-rw-r--r-- | TLE.go | 42 |
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"` |