datastorex

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package datastorex extends the cloud.google.com/go/datastore package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map map[string]string

Map implements the PropertyLoadSaver interface and provides a mechanism for using `map[string]string` types in datastore entities.

func (*Map) Load

func (mp *Map) Load(ps []datastore.Property) error

Load allocates a new map and assignes key/values from each datastore.Property. Every datastore.Property type should be string. Non-string types are ignored.

func (*Map) Save

func (mp *Map) Save() ([]datastore.Property, error)

Save converts a Map to a slice of datastore properties.

Jump to

Keyboard shortcuts

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