aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_parse.go')
-rw-r--r--src/c_parse.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/c_parse.go b/src/c_parse.go
index ce7803e..2c8cddd 100644
--- a/src/c_parse.go
+++ b/src/c_parse.go
@@ -70,6 +70,18 @@ func c_parse_opts(file string) (HardOpts, error) {
return opts, err
}
+func c_parse_styles(file string) (HardStyle, error) {
+ var styles HardStyle
+
+ yaml_file, err := os.ReadFile(file)
+ if err != nil {
+ return styles, err
+ }
+ err = yaml.Unmarshal(yaml_file, &styles)
+ return styles, err
+}
+
+
func c_read_yaml_file(file string) (*HostNode, error) {
var host HostNode
yaml_file, err := os.ReadFile(file)