From 583e1957c1d07090d6fa61af592530d33fef6254 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 26 Jun 2023 22:30:02 -0600 Subject: [PATCH] Export BaseSignal fields --- graph.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/graph.go b/graph.go index 7db6e47..c14ce94 100644 --- a/graph.go +++ b/graph.go @@ -118,9 +118,9 @@ type GraphSignal interface { // BaseSignal is the most basic type of signal, it has no additional data type BaseSignal struct { - direction SignalDirection `json:"direction"` - source NodeID `json:"source"` - _type string `json:"type"` + FDirection SignalDirection `json:"direction"` + FSource NodeID `json:"source"` + FType string `json:"type"` } func (state BaseSignal) String() string { @@ -132,15 +132,15 @@ func (state BaseSignal) String() string { } func (signal BaseSignal) Direction() SignalDirection { - return signal.direction + return signal.FDirection } func (signal BaseSignal) Source() NodeID { - return signal.source + return signal.FSource } func (signal BaseSignal) Type() string { - return signal._type + return signal.FType } func NewBaseSignal(source GraphNode, _type string, direction SignalDirection) BaseSignal { @@ -150,9 +150,9 @@ func NewBaseSignal(source GraphNode, _type string, direction SignalDirection) Ba } signal := BaseSignal{ - direction: direction, - source: source_id, - _type: _type, + FDirection: direction, + FSource: source_id, + FType: _type, } return signal }