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: example_query_select_test.go
    path of file: ./repos/rethinkdb-go/internal/integration/tests
    
    the code of the file until where you have to start completion: package tests

import (
	"fmt"
	r "gopkg.in/rethinkdb/rethinkdb-go.v6"
)

// Find a document by ID.
func ExampleTerm_Get() {
	// Fetch the row from the database
	res, err := r.DB("examples").Table("heroes").Get(2).Run(session)
	if err != nil {
		fmt.Print(e
    
func ExampleTerm_GetAllByIndex() {
	// Fetch the row from the database
	res, err := r.DB("examples").Table("heroes").GetAllByIndex("code_name", "man_of_steel").Run(session)
	if err != nil {
		fmt.Print(err)
		return
	}
	defer res.Close()

	if res.IsNil() {
		fmt.Print("Row not found")
		return
	}

	var hero map[string]interface{}
	err = res.One(&hero)
	if err != nil {
		fmt.Printf("Error scanning database result: %s", err)
		return
	}
	fmt.Print(hero["name"])

	// Output: Superman
}