mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 16:06:34 -06:00
Fix location/YearDayRange init order
This commit is contained in:
4
term.go
4
term.go
@@ -23,7 +23,7 @@ type Term struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
SpringRange, SummerRange, FallRange = GetYearDayRange(uint16(time.Now().Year()))
|
SpringRange, SummerRange, FallRange YearDayRange
|
||||||
CentralTime *time.Location
|
CentralTime *time.Location
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -33,6 +33,8 @@ func init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SpringRange, SummerRange, FallRange = GetYearDayRange(uint16(time.Now().Year()))
|
||||||
}
|
}
|
||||||
|
|
||||||
type YearDayRange struct {
|
type YearDayRange struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user