fixed example
This commit is contained in:
parent
0d568e2674
commit
6d1c7a6ba5
|
@ -10,9 +10,10 @@ import (
|
|||
func main() {
|
||||
data, _ := os.ReadFile("log/sample.text")
|
||||
log.Info("trying unmarshal len(data) =", len(data))
|
||||
pb, err := chatpb.UnmarshalChats(data)
|
||||
pb, err := chatpb.UnmarshalChatsTEXT(data)
|
||||
if err != nil {
|
||||
log.Info("Unmarshal error", err)
|
||||
// log.Info(string(data))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue