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

import (
	"fmt"
	"log"
	"strings"

	"github.com/francoispqt/gojay"
)

func ExampleUnmarshal_string() {
	data := []byte(`"gojay"`)
	var str string
	err := gojay.Unmarshal(data, &str)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(str) // true
}

func ExampleUnmarshal_bool() {
	data := []byte(`true`)
	var b bool
	err := gojay.Unmarsha
    
func ExampleDecodeObjectFunc() {
	reader := strings.NewReader(`{
		"name": "John Doe",
		"email": "john.doe@email.com" 
	}`)
	dec := gojay.NewDecoder(reader)

	user := struct {
		name  string
		email string
	}{}
	dec.DecodeObject(gojay.DecodeObjectFunc(func(dec *gojay.Decoder, k string) error {
		switch k {
		case "name":
			return dec.String(&user.name)
		case "email":
			return dec.String(&user.email)
		}
		return nil
	}))

	fmt.Printf("User\nname: %s\nemail: %s", user.name, user.email)

	// Output:
	// User
	// name: John Doe
	// email: john.doe@email.com
}