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/scan4all/spider/test
    
    the code of the file until where you have to start completion: package main

import (
	"context"
	"encoding/json"
	"fmt"
	"github
    
func main() {
	var szUrl = "https://www.butian.net/Reward/plan/2"

	// 参数设置
	options := []chromedp.ExecAllocatorOption{
		chromedp.Flag("headless", false),
		chromedp.Flag("blink-settings", "imagesEnabled=false"),
		chromedp.Flag("enable-automation", false),
		chromedp.Flag("disable-extensions", true),
		chromedp.UserAgent(`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15`),
	}
	options = append(chromedp.DefaultExecAllocatorOptions[:], options...)
	ctx, cancel := chromedp.NewExecAllocator(context.Background(), options...)
	defer cancel()

	// run task list
	var res []string
	var res1, body *string
	//
	err := chromedp.Run(ctx,
		// $("div.companyList2 a").attr("href")
		//chromedp.Evaluate(`Object.keys(window);`, &res),
		//chromedp.Navigate(szUrl),
		setheaders(
			szUrl,
			map[string]interface{}{
				"Cookie":  "__btc__=62afaa6b125f5d4fc36222503604bb13d46498a5; __btu__=3fa4ad1bf25a68db2b6a69db3547107bd69341ce; __btuc__=da130fcb560ecddcb42215ade762d77762644ac5; notice=0; PHPSESSID=oarurhc25ood8nosd1dv1j4953",
				"Referer": "https://www.butian.net/Reward/plan/2",
			},
			res1,
		), // chromedp.OuterHTML("html", body)
	)
	if err != nil {
		log.Fatal(err)
		return
	}
	log.Println(body, res1)

	log.Printf("window object keys: %v", res)
}