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: metadata.go
    path of file: ./repos/cockroach/pkg/sql/catalog/bootstrap
    
    the code of the file until where you have to start completion: // Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

// Package bootstrap contains the metadata required to bootstrap the sql
// schema for a fresh cockroach cluster.
package bootstrap

import (
	"bytes"
	"context"
	"crypto/sha256"
	"encoding/
    
func InitialValuesToString(ms MetadataSchema) string {
	kvs, splits := ms.GetInitialValues()
	// Collect the records.
	type record struct {
		k, v []byte
	}
	records := make([]record, 0, len(kvs)+len(splits))
	for _, kv := range kvs {
		records = append(records, record{k: kv.Key, v: kv.Value.TagAndDataBytes()})
	}
	p := ms.codec.TenantPrefix()
	pNext := p.PrefixEnd()
	for _, s := range splits {
		// Filter out the tenant end key because it does not have the same prefix.
		if bytes.HasPrefix(s, pNext) {
			continue
		}
		records = append(records, record{k: s})
	}
	// Strip the tenant prefix if there is one.
	for i, r := range records {
		if !bytes.Equal(p, r.k[:len(p)]) {
			panic("unexpected prefix")
		}
		records[i].k = r.k[len(p):]
	}
	// Build the string representation.
	s := make([]initialValueStrings, len(records))
	for i, r := range records {
		s[i].Key = hex.EncodeToString(r.k)
		s[i].Value = hex.EncodeToString(r.v)
	}
	// Sort the records by key.
	sort.Slice(s, func(i, j int) bool {
		return s[i].Key < s[j].Key
	})
	// Build the string representation.
	var sb strings.Builder
	sb.WriteRune('[')
	for i, r := range s {
		if i > 0 {
			sb.WriteRune(',')
		}
		b, err := json.Marshal(r)
		if err != nil {
			panic(err)
		}
		sb.Write(b)
		sb.WriteRune('\n')
	}
	sb.WriteRune(']')
	return sb.String()
}