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: storage_mem.go
    path of file: ./repos/cockroach/pkg/server/debug/pprofui
    
    the code of the file until where you have to start completion: // Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of
    
func (s *MemStorage) Get(id string, read func(bool, io.Reader) error) error {
	s.mu.Lock()
	defer s.mu.Unlock()
	for _, v := range s.mu.records {
		if v.id == id {
			return read(v.isProfileProto, bytes.NewReader(v.b))
		}
	}
	return errors.Errorf("profile not found; it may have expired, please regenerate the profile.\n" +
		"To generate profile for a node, use the profile generation link from the Advanced Debug page.\n" +
		"Attempting to generate a profile by modifying the node query parameter in the URL will not work.",
	)
}