func (m *Map) Create(k, v []byte) error {
	if m.fd == nil {
		return errUninitializedMap
	}
	return wrapMapOpError("create", m.fd.Update(k, v, mapUpdateNoexist))
}
Create creates a new entry for k in the map, and sets the value to v.
If an entry for k exists in the map, Create returns an error such that
IsExist(err) == true.
package ebpf
import (
	"errors"
	"fmt"
	"unsafe"
	"golang.org/x/sys/unix"
)
type MapType uint32
const (
	MapUnspec MapType = iota
	MapHash
	MapArray
	MapProgArray
	MapPerfEventArray
	MapPerCPUHash
	MapPerCPUArray
	MapStackTrace
	MapCGroupArray
	MapLRUHash
	MapLRUPerCPUHash
	MapLPMTrie
	MapArrayOfMaps
	MapHashOfMaps
	MapDevmap
	MapSockmap
	MapCPUmap
	MapXSKMap
	MapSockhash
	MapCGroupStorage
	MapReuseportSockarray
	maxMapType  
)
type Map struct {
	Type           MapType
	KeySize        uint32
	ValueSize      uint32
	MaxEntries     uint32
	Flags          uint32  
	InnerMap       *Map    
	NUMANode       uint32
	ObjectName     string
	InterfaceIndex uint32  
	fd *mapFD
}
func (m *Map) Init() error {
	if m.Type == MapUnspec {
		return errors.New("ebpf: unspecified map type")
	}
	if m.Type >= maxMapType {
		return fmt.Errorf("ebpf: invalid map type %d", m.Type)
	}
	if m.KeySize == 0 {
		return errors.New("ebpf: map KeySize not configured")
	}
	if m.MaxEntries == 0 {
		return errors.New("ebpf: map MaxEntries not configured")
	}
	cfg := mapAttr{
		Type:           m.Type,
		KeySize:        m.KeySize,
		ValueSize:      m.ValueSize,
		MaxEntries:     m.MaxEntries,
		Flags:          m.Flags,
		InnerMapFD:     0,  
		NUMANode:       m.NUMANode,
		Name:           newObjectName(m.ObjectName),
		InterfaceIndex: m.InterfaceIndex,
	}
	fd := new(mapFD)
	if err := fd.Init(&cfg); err != nil {
		return wrapMapOpError("init", err)
	}
	m.fd = fd
	return nil
}
var errUninitializedMap = errors.New("ebpf: use of uninitialized map")
func (m *Map) Lookup(k, v []byte) error {
	if m.fd == nil {
		return errUninitializedMap
	}
	return wrapMapOpError("lookup", m.fd.Lookup(k, v))
}
func (m *Map) Set(k, v []byte) error {
	if m.fd == nil {
		return errUninitializedMap
	}
	return wrapMapOpError("set", m.fd.Update(k, v, mapUpdateAny))
}