add Message type to simplify encoding write data
go fmt