type runnerMap … var flags … var runners … type logOutput … var CmdNet … func init() { … } func main(cmd *cobra.Command, args []string) { … } func makeRunnerMap() runnerMap { … } func executeRunner(name string, rawOptions string) (logOutput, error) { … } // handleRunRequest handles a request JSON to the network tester. func handleRunRequest(w http.ResponseWriter, r *http.Request) { … }