package maps
import "github.com/markbates/pkger/internal/maps"
Index ¶
- type Files
- func (m *Files) Data() *sync.Map
- func (m *Files) Delete(key here.Path)
- func (m *Files) Keys() []here.Path
- func (m *Files) Load(key here.Path) (pkging.File, bool)
- func (m *Files) MarshalJSON() ([]byte, error)
- func (m *Files) Range(f func(key here.Path, value pkging.File) bool)
- func (m *Files) Store(key here.Path, value pkging.File)
- func (m *Files) String() string
- func (m *Files) UnmarshalJSON(b []byte) error
- type Infos
- func (m *Infos) Data() *sync.Map
- func (m *Infos) Delete(key string)
- func (m *Infos) Keys() []string
- func (m *Infos) Load(key string) (here.Info, bool)
- func (m *Infos) MarshalJSON() ([]byte, error)
- func (m *Infos) Range(f func(key string, value here.Info) bool)
- func (m *Infos) Store(key string, value here.Info)
- func (m *Infos) UnmarshalJSON(b []byte) error
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 (*Files) Delete ¶
Delete the key from the map
func (*Files) Keys ¶
Keys returns a list of keys in the map
func (*Files) Load ¶
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 (*Files) Range ¶
Range over the pkging.File values in the map
func (*Files) Store ¶
Store a pkging.File in the map
func (*Files) String ¶
func (*Files) UnmarshalJSON ¶
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 (*Infos) Delete ¶
Delete the key from the map
func (*Infos) Keys ¶
Keys returns a list of keys in the map
func (*Infos) Load ¶
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 (*Infos) Range ¶
Range over the here.Info values in the map
func (*Infos) Store ¶
Store a here.Info in the map
func (*Infos) UnmarshalJSON ¶
Source Files ¶
- Version
- v0.1.0
- Published
- Oct 18, 2019
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 47 minutes ago –
Tools for package owners.