func (r *Record) Get(key string) (string, bool) {
	for _, e := range r.Entries {
		if e.Key == key {
			return e.Value, true
		}
	}
	return "", false
}
Get returns a value for a given key
package siser
import (
	"bytes"
	"fmt"
	"strconv"
	"strings"
	"time"
)
type Entry struct {
	Key   string
	Value string
}
type Record struct {
	Entries []Entry
	buf     strings.Builder
	Name    string
	Timestamp time.Time
}
func (r *Record) appendKeyVal(key, val string) {
	e := Entry{
		Key:   key,
		Value: val,
	}
	r.Entries = append(r.Entries, e)
}
func (r *Record) Write(args ...string) {
	n := len(args)
	if n == 0 || n%2 != 0 {
		panic(fmt.Sprintf("Invalid number of args: %d", len(args)))
	}
	for i := 0; i < n; i += 2 {
		r.marshalKeyVal(args[i], args[i+1])
		r.appendKeyVal(args[i], args[i+1])
	}
}
func (r *Record) Reset() {
	if r.Entries != nil {
		r.Entries = r.Entries[0:0]
	}
	r.Name = ""
	var t time.Time
	r.Timestamp = t
	r.buf.Reset()
}