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: winbuild.go
    path of file: ./repos/client/go/release/winbuild
    
    the code of the file until where you have to start completion: package winbuild

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"net/url"
)

const (
	buildNumAPIUrl = "https://keybase.io/_/api/1.0/pkg/build_number.json"
)

type buildNumberResponse struct {
	Status struct {
		Code int    `json:"code"`
		Name string `json:"name"`
	} `json:"status"`
	BuildNumber int `json:"build_number"`
}

func GetNextBuildNumber(keybaseToken string, version string, botID string, platform string) error {

	form := url.Values{}
	form.Set("version", version)
	form.Add("bot_id", botID)
	form.Add("platform", platform)
	req, err := http.NewRequest("POST", buildNumAPIUrl, bytes.NewBufferString(form.Encode()))
	if err != nil {
		return fmt.Errorf("newrequest failed, %v", err)
	}
	req.Header.Add("X-keybase-admin-token", keybaseToken)
	req
    
func GetNextBuildNumber(keybaseToken string, version string, botID string, platform string) error {

	form := url.Values{}
	form.Set("version", version)
	form.Add("bot_id", botID)
	form.Add("platform", platform)
	req, err := http.NewRequest("POST", buildNumAPIUrl, bytes.NewBufferString(form.Encode()))
	if err != nil {
		return fmt.Errorf("newrequest failed, %v", err)
	}
	req.Header.Add("X-keybase-admin-token", keybaseToken)
	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		return fmt.Errorf("request failed, %v", err)
	}
	defer resp.Body.Close()

	body, err := io.ReadAll(resp.Body)
	if err != nil {
		return fmt.Errorf("body err, %v", err)
	}

	var reply buildNumberResponse
	if err := json.Unmarshal(body, &reply); err != nil {
		return fmt.Errorf("json reply err, %v", err)
	}

	if reply.Status.Code != 0 {
		return fmt.Errorf("Server returned failure, %s", body)
	}

	fmt.Printf("%d\n", reply.BuildNumber)
	return nil
}