diff options
| author | Jeff Carr <[email protected]> | 2025-01-11 05:55:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-11 05:55:42 -0600 |
| commit | 48b19f1e70331fc6213a2e3a179e8b18a26aaecc (patch) | |
| tree | 1348fc46484db1909b6c079888d61a046fa78b2b /patch.Send.go | |
| parent | 1e38cacfa788fc6c0ed2abcf627f4d6198f0b2ae (diff) | |
new protobuf file
Diffstat (limited to 'patch.Send.go')
| -rw-r--r-- | patch.Send.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/patch.Send.go b/patch.Send.go deleted file mode 100644 index 42585ea..0000000 --- a/patch.Send.go +++ /dev/null @@ -1,27 +0,0 @@ -package forgepb - -// functions to import and export the protobuf -// data to and from config files - -import ( - "errors" - "time" - - "go.wit.com/log" -) - -func (f *Forge) SendPatchSet(pset *Patchs) error { - var err error - data, err := pset.Marshal() - if err != nil { - log.Info("proto.Marshal() pset(len) error", len(data), err) - return err - } - now := time.Now() - timestamp := now.Format("2006.01.02.150405") // bummer. other date doesn't work? - cfgfile := "patchset/patchset." + timestamp + ".pb" - log.Info("proto.Marshal() pset(len)", len(data)) - configWrite(cfgfile, data) - - return errors.New("don't know how to send yet") -} |
