maps

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL