This commit is contained in:
Tnze
2022-01-22 21:39:40 +08:00
parent c724909cd7
commit e6c6684c25
2 changed files with 9 additions and 7 deletions

View File

@ -123,8 +123,10 @@ func ExampleMessage_Append() {
Append(chat.Message{Text: "22222"}).
Append(chat.Message{Text: "333333"}).
Append(chat.Message{Text: "4444444"})
fmt.Print(msg)
fmt.Println(msg)
fmt.Println("debug: extra length:", len(msg.Extra))
// Output: 1111222223333334444444
// debug: extra length: 3
}
func ExampleTranslateMsg() {