package maps

import "github.com/markbates/pkger/internal/maps"

Index

Types

type Files

type Files struct {
	// contains filtered or unexported fields
}

Files wraps sync.Map and uses the following types: key: here.Path value: pkging.File

func (*Files) Data

func (m *Files) Data() *sync.Map

func (*Files) Delete

func (m *Files) Delete(key here.Path)

Delete the key from the map

func (*Files) Keys

func (m *Files) Keys() []here.Path

Keys returns a list of keys in the map

func (*Files) Load

func (m *Files) Load(key here.Path) (pkging.File, bool)

Load the key from the map. Returns pkging.File or bool. A false return indicates either the key was not found or the value is not of type pkging.File

func (*Files) MarshalJSON

func (m *Files) MarshalJSON() ([]byte, error)

func (*Files) Range

func (m *Files) Range(f func(key here.Path, value pkging.File) bool)

Range over the pkging.File values in the map

func (*Files) Store

func (m *Files) Store(key here.Path, value pkging.File)

Store a pkging.File in the map

func (*Files) String

func (m *Files) String() string

func (*Files) UnmarshalJSON

func (m *Files) UnmarshalJSON(b []byte) error

type Infos

type Infos struct {
	// contains filtered or unexported fields
}

Infos wraps sync.Map and uses the following types: key: string value: here.Info

func (*Infos) Data

func (m *Infos) Data() *sync.Map

func (*Infos) Delete

func (m *Infos) Delete(key string)

Delete the key from the map

func (*Infos) Keys

func (m *Infos) Keys() []string

Keys returns a list of keys in the map

func (*Infos) Load

func (m *Infos) Load(key string) (here.Info, bool)

Load the key from the map. Returns here.Info or bool. A false return indicates either the key was not found or the value is not of type here.Info

func (*Infos) MarshalJSON

func (m *Infos) MarshalJSON() ([]byte, error)

func (*Infos) Range

func (m *Infos) Range(f func(key string, value here.Info) bool)

Range over the here.Info values in the map

func (*Infos) Store

func (m *Infos) Store(key string, value here.Info)

Store a here.Info in the map

func (*Infos) UnmarshalJSON

func (m *Infos) UnmarshalJSON(b []byte) error

Source Files

files.go infos.go

Version
v0.17.0
Published
Jun 3, 2020
Platform
js/wasm
Imports
6 packages
Last checked
14 minutes ago

Tools for package owners.