This commit is contained in:
Jeff Carr 2025-08-21 01:21:39 -05:00
parent 6d1c7a6ba5
commit f93e54df6a
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ makechat:
GO111MODULE=off go run make_chat.go
parselog:
GO111MODULE=off go run parse_protobuf_log.go
GO111MODULE=off go run parse_protobuf_log.go log/sample.text
goimports:
goimports -w *.go

View File

@ -8,7 +8,9 @@ import (
)
func main() {
data, _ := os.ReadFile("log/sample.text")
filename := os.Args[1]
// data, _ := os.ReadFile("log/sample.text")
data, _ := os.ReadFile(filename)
log.Info("trying unmarshal len(data) =", len(data))
pb, err := chatpb.UnmarshalChatsTEXT(data)
if err != nil {