imap

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(reserve bool) collect.MapWriter

return a builder that generates ItemMap

Types

type ItemMap

type ItemMap []MapItem

used to preserve the specified order of keys

func (ItemMap) Find

func (m ItemMap) Find(k string) (ret *MapItem, okay bool)

returns a valid pointer into the slice, or nil if not found

func (ItemMap) FindIndex

func (m ItemMap) FindIndex(k string) (ret int)

returns the index of the item or -1 if not found

type MapItem

type MapItem struct {
	Key   string
	Value any
}

Jump to

Keyboard shortcuts

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