Files
herolib/lib/data/paramsparser/get_params.v
2024-12-25 09:23:31 +01:00

9 lines
327 B
V

module paramsparser
// Looks for a string of params in the parameters. If it doesn't exist this function will return an error.
// Furthermore an error will be returned if the params is not properly formatted
pub fn (params &Params) get_params(key string) !Params {
mut valuestr := params.get(key)!
return parse(valuestr)!
}