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: keyword.go
    path of file: ./repos/ZeroBot-Plugin/plugin/imgfinder
    
    the code of the file until where you have to start completion: // Package imagefinder 关键字搜图
package imagefinder

import (
	"encoding/json"
	"errors"
	"math/rand"
	"net/http"
	"net/url"
	"reflect"
	"regexp"
	"strings"

	"github.com/quic-go/quic-go/http3"

	zero "github.com/wdvxdr1123/ZeroBot"
	"github.com/wdvxdr1123
    
func soutuapi(keyword string) (r resultjson, err error) {
	var data []byte
	data, err = web.RequestDataWith(&http.Client{Transport: &http3.RoundTripper{}},
		"https://api.pixivel.moe/v2/pixiv/illust/search/"+url.QueryEscape(keyword)+"?page=0",
		"GET",
		"https://pixivel.moe/",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36",
		nil,
	)
	if err != nil {
		return
	}
	err = json.Unmarshal(data, &r)
	if err == nil && r.Error {
		err = errors.New(r.Message)
	}
	return
}