diff options
| author | Jeff Carr <[email protected]> | 2024-11-19 05:44:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-19 05:44:42 -0600 |
| commit | 11e105ec931e2a190df33fac5de81636097a97f6 (patch) | |
| tree | 1e2ae91fef6b85778b3038a406cd6ea9029e9f8f /helpers.go | |
| parent | 24a4b65f268d8a4086cb2f906b1da2efce2799d8 (diff) | |
save config file worksv0.0.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -51,3 +51,13 @@ func (m *Machine) Marshal() ([]byte, error) { func (m *Machine) Unmarshal(data []byte) error { return proto.Unmarshal(data, m) } + +// marshal to wire +func (m *Machines) Marshal() ([]byte, error) { + return proto.Marshal(m) +} + +// unmarshal from wire +func (m *Machines) Unmarshal(data []byte) error { + return proto.Unmarshal(data, m) +} |
