func (m MapStore) CreatePuppy(p Puppy) error {
	if _, ok := m[p.ID]; ok {
		return ErrorF(Duplicate, "puppy with Id %d already exists", p.ID)
	}
	val, _ := strconv.Atoi(p.Value)
	if val < 0 {
		return ErrorF(Invalid, "puppy with value less than 0 not allowed")
	}
	m[p.ID] = p
	return nil
}
CreatePuppy creates a Puppy in mapstore
package main
import (
	"strconv"
)
type MapStore map[uint32]Puppy