From 11e105ec931e2a190df33fac5de81636097a97f6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 19 Nov 2024 05:44:42 -0600 Subject: save config file works Signed-off-by: Jeff Carr --- helpers.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpers.go') diff --git a/helpers.go b/helpers.go index 6bbb1f7..390da5c 100644 --- a/helpers.go +++ b/helpers.go @@ -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) +} -- cgit v1.2.3