From 58307def544f400b4e50863fecae4ba3b1217666 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 19 Aug 2019 15:05:45 +0200 Subject: commented the TLE struct --- TLE.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"` } -- cgit 1.4.1