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: launcher.go
    path of file: ./repos/tabtoy/v3/tests
    
    the code of the file until where you have to start completion: package tests

import (
	"fmt"
	"github.com/davyxu/protoplus/codegen"
	"os/exec"
	"strings"
)

func compileLauncher(launcherFile, configFile, tableFile string) ([]byte, error) {

	m := struct {
		ConfigFile string
	}{
		ConfigFile: strings.Replace(configFile, "\\", "\\\\", -1),
	}

	const textTemplate = `
package main

import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"os"
)

func ma
    
func main() {

	data, err := ioutil.ReadFile("{{.ConfigFile}}")
	if err != nil {
		fmt.Println(err)
		return
	}

	var config Table
	err = json.Unmarshal(data, &config)

	if err != nil {
		fmt.Println(err)
		os.Exit(1)
		return
	}

	outData, err := json.MarshalIndent(&config, "", "\t")

	if err != nil {
		fmt.Println(err)
		os.Exit(1)
		return
	}

	fmt.Println(string(outData))
}
`
	var data []byte
	err := codegen.NewCodeGen("launcher").
		RegisterTemplateFunc(codegen.UsefulFunc).
		ParseTemplate(textTemplate, m).
		WriteOutputFile(launcherFile).Error()

	if err != nil {
		fmt.Println(string(data))
		return nil, err
	}

	cmd := exec.Command("go", "run", launcherFile, tableFile)

	output, err := cmd.CombinedOutput()

	if err != nil {
		return output, err
	}

	return output, nil
}