From f85646ac1a58e5f10a46dfcc4c27733ad1389bde Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 26 Mar 2024 15:45:59 +0000 Subject: [PATCH] Add StationEntry type --- pkg/database/corpus.go | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkg/database/corpus.go b/pkg/database/corpus.go index 637f340..eacac8f 100644 --- a/pkg/database/corpus.go +++ b/pkg/database/corpus.go @@ -1,11 +1,18 @@ package database type CorpusEntry struct { - CRS string `json:"3ALPHA"` - NLC int `json:"NLC"` - NLCDESC string `json:"NLCDESC"` - NLCDESC16 string `json:"NLCDESC16"` - STANOX string `json:"STANOX"` - TIPLOC string `json:"TIPLOC"` - UIC string `json:"UIC"` + CRS string `json:"3ALPHA,omitempty"` + NLC int `json:"NLC,omitempty"` + NLCDESC string `json:"NLCDESC,omitempty"` + NLCDESC16 string `json:"NLCDESC16,omitempty"` + STANOX string `json:"STANOX,omitempty"` + TIPLOC string `json:"TIPLOC,omitempty"` + UIC string `json:"UIC,omitempty"` +} + +type StationEntry struct { + CRS string `json:"3ALPHA,omitempty"` + NLCDESC string `json:"NLCDESC,omitempty"` + STANOX string `json:"STANOX,omitempty"` + TIPLOC string `json:"TIPLOC,omitempty"` }