orderedmap

package
v2.4.10 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 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 Map

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

func New

func New() *Map

func (*Map) Copy

func (o *Map) Copy() *Map

func (*Map) Delete

func (o *Map) Delete(key string)

func (*Map) Get

func (o *Map) Get(key string) (interface{}, bool)

func (*Map) InsertAt

func (o *Map) InsertAt(key string, value interface{}, position int) error

InsertAt This is a zero based position index: 0,1,2,3..n(from left) OR -1,-2,-3...-n(from right) where -1 is the last place.

func (*Map) Keys

func (o *Map) Keys() []string

func (*Map) MarshalJSON

func (o *Map) MarshalJSON() ([]byte, error)

func (*Map) Prepend

func (o *Map) Prepend(key string, value interface{})

func (*Map) Set

func (o *Map) Set(key string, value interface{})

func (*Map) UnmarshalJSON

func (o *Map) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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