XMP6ZULVCPCR3WU425L4ZUEGZFX3SEQTC25TNAZTUJRM5LO2FKFQC json_str := os.read_file('config.json') or { '{}' }cfg := json.decode(Config, json_str) or { Config{} }return cfg
if json_str := os.read_file('config.json') {cfg := json.decode(Config, json_str) or {println('config.json is invalid')exit(1)}if cfg.matrix_host.len == 0 {println("config.json: matrix_host setting is empty")exit(1)}return cfg} else {json_str := json.encode(Config{})os.write_file('config.json', json_str)println('config.json created. edit this file then run again')exit(1)}