firestore

package
v0.0.0-...-59f10ad Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(projectID string) (ctx context.Context, client *firestore.Client)

func Read

func Read(collection string, client *firestore.Client)

func Write

func Write(collection string, data interface{}, client *firestore.Client)

Types

type User

type User struct {
	First string `firestore:"first"`
	Last  string `firestore:"last"`
	Born  int    `firestore:"born"`
}

Jump to

Keyboard shortcuts

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