go fmt and add GetMessageSize method