package commands type ClientSession struct{ Queue [][]string InTransaction bool } func NewClientSession() *ClientSession { return &ClientSession{ InTransaction: false, Queue: make([][]string, 0), } } func (s *ClientSession) Reset() { s.InTransaction = false s.Queue = nil }