code: func (enum *GenericEnum) Set(symbol string) {
  	if index, exists := enum.symbolsToIndex[symbol]; !exists {
  		panic("Unknown enum symbol")
  	} else {
  		enum.index = index
  	}
  }
docs: // Set sets the string value for this enum (e.g. symbol).
  // Panics if the given symbol does not exist in this enum.