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: create.go
    path of file: ./repos/benthos/internal/cli
    
    the code of the file until where you have to start completion: package cli

import (
	"errors"
	"fmt"
	"os"
	"strings"

	"github.com/urfave/cli/v2"
	"gopkg.in/yaml.v3"

	"github.com/benthosdev/benthos/v4/internal/bundle"
	"github.com/benthosdev/benthos/v4/internal/config"
	"github.com/benthosdev/benthos/v4/internal/docs"
	"github.com/benthosdev/benthos/v4/internal/stream"
)

func addExpr
    
func addExpression(conf map[string]any, expression string) error {
	var inputTypes, processorTypes, outputTypes []string
	componentTypes := strings.Split(expression, "/")
	for i, str := range componentTypes {
		for _, t := range strings.Split(str, ",") {
			if t = strings.TrimSpace(t); len(t) > 0 {
				switch i {
				case 0:
					inputTypes = append(inputTypes, t)
				case 1:
					processorTypes = append(processorTypes, t)
				case 2:
					outputTypes = append(outputTypes, t)
				default:
					return errors.New("more component separators than expected")
				}
			}
		}
	}

	if lInputs := len(inputTypes); lInputs == 1 {
		t := inputTypes[0]
		if _, exists := bundle.AllInputs.DocsFor(t); exists {
			conf["input"] = map[string]any{
				"type": t,
			}
		} else {
			return fmt.Errorf("unrecognised input type '%v'", t)
		}
	} else if lInputs > 1 {
		var inputsList []any
		for _, t := range inputTypes {
			if _, exists := bundle.AllInputs.DocsFor(t); exists {
				inputsList = append(inputsList, map[string]any{
					"type": t,
				})
			} else {
				return fmt.Errorf("unrecognised input type '%v'", t)
			}
		}
		conf["input"] = map[string]any{
			"broker": map[string]any{
				"inputs": inputsList,
			},
		}
	}

	if len(processorTypes) > 0 {
		var procsList []any
		for _, t := range processorTypes {
			if _, exists := bundle.AllProcessors.DocsFor(t); exists {
				procsList = append(procsList, map[string]any{
					"type": t,
				})
			} else {
				return fmt.Errorf("unrecognised processor type '%v'", t)
			}
		}
		conf["pipeline"] = map[string]any{
			"processors": procsList,
		}
	}

	if lOutputs := len(outputTypes); lOutputs == 1 {
		t := outputTypes[0]
		if _, exists := bundle.AllOutputs.DocsFor(t); exists {
			conf["output"] = map[string]any{
				"type": t,
			}
		} else {
			return fmt.Errorf("unrecognised output type '%v'", t)
		}
	} else if lOutputs > 1 {
		var outputsList []any
		for _, t := range outputTypes {
			if _, exists := bundle.AllOutputs.DocsFor(t); exists {
				outputsList = append(outputsList, map[string]any{
					"type": t,
				})
			} else {
				return fmt.Errorf("unrecognised output type '%v'", t)
			}
		}

		conf["output"] = map[string]any{
			"broker": map[string]any{
				"outputs": outputsList,
			},
		}
	}
	return nil
}