orderedmap

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package orderedmap offers an ordered group of key/value pairs.

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
}

Map is a combination of a map and a double linked list.

func New

func New() *Map

New initializes an ordered map and returns it.

func (*Map) Get

func (m *Map) Get(key string) string

Get returns key's value.

func (*Map) Keys

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

Keys returns a slice with all the keys of the map.

func (*Map) Set

func (m *Map) Set(key, value string)

Set inserts a new pair at the end of the map.

Jump to

Keyboard shortcuts

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