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: builder_gen.go
    path of file: ./repos/corteza/extra/server-discovery/vendor/github.com/lestrrat-go/jwx/jwt
    
    the code of the file until where you have to start completion: // This file is auto-generated by jwt/internal/cmd/gentoken/main.go. DO NOT EDIT

package jwt

import (
	"time"

	"github.com/pkg/errors"
)

// Builder is a convenience wrapper around the New() constructor
// and the Set() methods to ass
    
func (b *Builder) Build() (Token, error) {
	tok := New()
	for _, claim := range b.claims {
		if err := tok.Set(claim.Key.(string), claim.Value); err != nil {
			return nil, errors.Wrapf(err, `failed to set claim %q`, claim.Key.(string))
		}
	}
	return tok, nil
}