From 8058a551ee80f0cb519012b900cac2dba669df34 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 31 Jan 2024 20:20:20 +0100 Subject: useless changes --- src/c_parse.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/c_parse.go') diff --git a/src/c_parse.go b/src/c_parse.go index faa8223..53249cf 100644 --- a/src/c_parse.go +++ b/src/c_parse.go @@ -58,6 +58,17 @@ import ( "gopkg.in/yaml.v3" ) +func c_parse_opts(file string) (HardOpts, error) { + var opts HardOpts + + yaml_file, err := os.ReadFile(file) + if err != nil { + return opts, err + } + err = yaml.Unmarshal(yaml_file, opts) + return opts, err +} + func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) { var host HostNode yaml_file, err := os.ReadFile(file) -- cgit v1.2.3