aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
commitbdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9 (patch)
tree003492335c1b93c7fae588c75f6117c7840b86fc /src/c_parse.go
parentcoool (diff)
downloadhardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.gz
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.bz2
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.xz
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.zst
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.zip
fucking great
Diffstat (limited to '')
-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)