diff options
| author | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
| commit | 69b5038c58e6a8487f22aeaf28eddec5c785c283 (patch) | |
| tree | 72b9910c32a803d8c7f3bffc0f5d7175516d39b0 /identify.go | |
| parent | 2ecc340541f88d4c1cbe437efe79a6fcfdbf5499 (diff) | |
probably better. notsure
Diffstat (limited to 'identify.go')
| -rw-r--r-- | identify.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/identify.go b/identify.go deleted file mode 100644 index c84f385..0000000 --- a/identify.go +++ /dev/null @@ -1,17 +0,0 @@ -package forgepb - -import ( - "go.wit.com/log" -) - -// print the protobuf in human form -func IdentifyProtobuf(data []byte) error { - var pb *Identify - pb = new(Identify) - if err := pb.Unmarshal(data); err != nil { - log.Info("data can't be identified as a standard protobuf. len =", len(data)) - return err - } - log.Info("Identify protobuf file uuid =", pb.Uuid, "version =", pb.Version) - return nil -} |
