package main type MqttConfig struct { Address string Username string Password string CommandTopic string `yaml:"command_topic"` StateTopic string `yaml:"state_topic"` ClientId string `yaml:"client_id"` } type SoundConfig struct { Program string Args []string `yaml:",flow"` } type PlayerConfig struct { DefaultProgram string `yaml:"default_program"` DefaultArgs []string `yaml:"default_args,flow"` Sounds map[string]SoundConfig } type Config struct { Mqtt MqttConfig Player PlayerConfig }