Merge branch 'development' of github.com:incubaid/herolib into development
* 'development' of github.com:incubaid/herolib: bump version to 1.0.34 feat: Add heroscript serialization/deserialization functions fix: Remove the seurity workflow update the ci security workfolw feat: Add encoderhero and heroscript_dumps/loads
This commit is contained in:
@@ -23,3 +23,14 @@ fn obj_init(mycfg_ ZinitInstaller) !ZinitInstaller {
|
||||
fn configure() ! {
|
||||
// mut installer := get()!
|
||||
}
|
||||
|
||||
/////////////NORMALLY NO NEED TO TOUCH
|
||||
|
||||
pub fn heroscript_dumps(obj ZinitInstaller) !string {
|
||||
return encoderhero.encode[ZinitInstaller](obj)!
|
||||
}
|
||||
|
||||
pub fn heroscript_loads(heroscript string) !ZinitInstaller {
|
||||
mut obj := encoderhero.decode[ZinitInstaller](heroscript)!
|
||||
return obj
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user