mirror of
https://github.com/taigrr/most-specific-period.git
synced 2026-04-02 03:38:41 -07:00
Uses an interface instead of a struct now
This commit is contained in:
@@ -2,8 +2,8 @@ package msp
|
||||
|
||||
import "time"
|
||||
|
||||
type Period struct {
|
||||
StartTime time.Time `json:"startTime"`
|
||||
EndTime time.Time `json:"endTime"`
|
||||
Identifier string `json:"identifier"`
|
||||
type Period interface {
|
||||
GetStartTime() time.Time
|
||||
GetEndTime() time.Time
|
||||
GetIdentifier() string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user