Skip to content

toml.input #

struct Config #

struct Config {
	text      string // TOML text
	file_path string // '/path/to/file.toml'

Config is used to configure input to the toml module. Only one of the fields text and file_path is allowed to be set at time of configuration.

fn (Config) read_input #

fn (c Config) read_input() !string

read_input returns either Config.text or the read file contents of Config.file_path depending on which one is not empty.