This commit is contained in:
2024-12-25 09:23:31 +01:00
parent 01ca5897db
commit 4e030b794d
306 changed files with 35071 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
module paramsparser
import json
// pub struct ParamsPub {
// pub mut:
// params []Param
// args []string //are commands without key/val, best not to use
// }
// pub struct ParamPub {
// pub:
// key string
// value string
// }
pub fn (mut params Params) export_json() string {
return json.encode(params)
}
pub fn json_import(data string) !Params {
return json.decode(Params, data)
}