kvlist

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver() shared.Driver

func MakeRootDict added in v0.4.0

func MakeRootDict(wrapped map[string]any) shared.Dict

Types

type KVList

type KVList map[string][]string

The type of a (key, value list) store.

func (KVList) AsValue

func (list KVList) AsValue() shared.Value

func (KVList) Keys

func (list KVList) Keys() []string

func (KVList) Lookup

func (list KVList) Lookup(key string) (shared.Value, bool)

type Unmarshaler

type Unmarshaler interface {
	Unmarshal([]byte) error
}

A type that supports deserialization from bytes.

type Value

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

func (Value) AsDict

func (v Value) AsDict() (shared.Dict, bool)

func (Value) AsSlice

func (v Value) AsSlice() ([]shared.Value, bool)

func (Value) Interface

func (v Value) Interface() any

Jump to

Keyboard shortcuts

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