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: main.go
    path of file: ./repos/stash/pkg/plugin/examples/goraw
    
    the code of the file until where you have to start completion: //go:build plugin_example
// +build plugin_example

package main

import (
	"context"
	"encoding/json"
	"io"
	"os"
	"time"

	exampleCommon "github.c
    
func Run(input common.PluginInput, output *common.PluginOutput) error {
	modeArg := input.Args.String("mode")
	ctx := context.TODO()
	var err error
	if modeArg == "" || modeArg == "add" {
		client := util.NewClient(input.ServerConnection)
		err = exampleCommon.AddTag(ctx, client)
	} else if modeArg == "remove" {
		client := util.NewClient(input.ServerConnection)
		err = exampleCommon.RemoveTag(ctx, client)
	} else if modeArg == "long" {
		err = doLongTask()
	} else if modeArg == "indef" {
		err = doIndefiniteTask()
	}

	if err != nil {
		errStr := err.Error()
		*output = common.PluginOutput{
			Error: &errStr,
		}
		return nil
	}

	outputStr := "ok"
	*output = common.PluginOutput{
		Output: &outputStr,
	}

	return nil
}