orderedmap

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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