You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: transitions.go
    path of file: ./repos/gogll/lr1/states
    
    the code of the file until where you have to start completion: package states

import (
	"bytes"
	"fmt"
)

/*
The set of transitions of a state.
*/
type Transitions struct {
	//key
    
func NewTransitionsList(trans []Transition, symbols []string) *Transitions {
	transitions := NewTransitions(symbols)
	transitions.list = trans
	for _, t := range trans {
		transitions.transitions[t.Sym] = t.State
	}
	return transitions
}