about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-08-19 15:05:45 +0200
committerEmile <hanemile@protonmail.com>2019-08-19 15:05:45 +0200
commit58307def544f400b4e50863fecae4ba3b1217666 (patch)
tree552a1b0bc103a09e81d1ea73695287ffb14f5ac1
parent57b6c5246e9348cb4dd5851bfc57affcd326c932 (diff)
commented the TLE struct
-rw-r--r--TLE.go7
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"`
 }