From bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 16 May 2024 20:20:20 +0200 Subject: fucking great --- src/c_parse.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/c_parse.go') 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) -- cgit v1.2.3