Add Calendar Events widget, integrate ICS calendar parsing, and refine related UI components
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/pelletier/go-toml/v2"
|
||||
@@ -8,6 +9,7 @@ import (
|
||||
|
||||
func LoadConfig(config interface{}) {
|
||||
if err := toml.Unmarshal(readFile("config.toml"), config); err != nil {
|
||||
fmt.Println(err)
|
||||
config = nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user