diff options
author | Emile <hanemile@protonmail.com> | 2019-08-19 15:05:45 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-08-19 15:05:45 +0200 |
commit | 58307def544f400b4e50863fecae4ba3b1217666 (patch) | |
tree | 552a1b0bc103a09e81d1ea73695287ffb14f5ac1 | |
parent | 57b6c5246e9348cb4dd5851bfc57affcd326c932 (diff) |
commented the TLE struct
-rw-r--r-- | TLE.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TLE.go b/TLE.go index a0a4605..f534ea4 100644 --- a/TLE.go +++ b/TLE.go @@ -4,12 +4,17 @@ Implementing the "Two-line element set (TLE)", a data format encoding orbital el package TLE -// tlebytes defines a tle using raw bytes. +// TLE defines the lines contained in a Two-Line-Element type TLE struct { TitleLine TitleLine `json:"titleline"` LineOne LineOne `json:"lineone"` LineTwo LineTwo `json:"linetwo"` } + +func NewTLE(titleLine TitleLine, lineOne LineOne, lineTwo LineTwo) *TLE { + return &TLE{TitleLine: titleLine, LineOne: lineOne, LineTwo: lineTwo} +} + type TitleLine struct { Satname string `json:"satname"` } |