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: 981. Time Based Key-Value Store.go
    path of file: ./repos/LeetCode-Go/leetcode/0981.Time-Based-Key-Value-Store
    
    the code of the file until where you have to start completion: package leetcode

import "sort"

type data struct {
	time  int
	value string
}

// TimeMap 
    
func (t TimeMap) Set(key string, value string, timestamp int) {
	if _, ok := t[key]; !ok {
		t[key] = make([]data, 1, 1024)
	}
	t[key] = append(t[key], data{
		time:  timestamp,
		value: value,
	})
}