amap

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMap

type AMap map[string]string

AMap Deprecated use tmap.TMap replace

func NewAMap

func NewAMap() AMap

func ToAMap

func ToAMap(v any) (values AMap)

ToAMap struct/slice... to AMap v must be allowed

func (AMap) Del

func (v AMap) Del(key string) AMap

Del deletes the values associated with key.

func (AMap) Get

func (v AMap) Get(key string) string

Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

func (AMap) Marshal

func (v AMap) Marshal(value any) error

Marshal AMap to v

func (AMap) Pop

func (v AMap) Pop(key string) string

Pop return Get value and Del key

func (AMap) Set

func (v AMap) Set(key string, value string) AMap

Set sets the key to value. It replaces string existing values.

Jump to

Keyboard shortcuts

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