Adds LastModified member to the Score struct
This commit is contained in:
parent
1216468c5b
commit
fe24e38627
@ -17,13 +17,15 @@ package settings
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Score represents the settings for a specific score file
|
// Score represents the settings for a specific score file
|
||||||
type Score struct {
|
type Score struct {
|
||||||
Name string // The name of the score in the songbook
|
Name string // The name of the score in the songbook
|
||||||
Categories []string // Categories to which the scores belong
|
Categories []string // Categories to which the scores belong
|
||||||
Path string // The path to the scores (uncompiled) file
|
Path string // The path to the scores (uncompiled) file
|
||||||
|
LastModified time.Time // Time when the score source was last modified (will be set internally)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FromJSON reads the settings of a score from a JSON file
|
// FromJSON reads the settings of a score from a JSON file
|
||||||
|
Reference in New Issue
Block a user