Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between these GAE libraries?

Throughout the Google App Engine documentation for Go, they use libraries interchangeably. Here's an example:

import "cloud.google.com/go/datastore"
import "google.golang.org/appengine/datastore"

Which of these libraries should I use and what are the key differences?

like image 467
Steven Lu Avatar asked Oct 30 '22 19:10

Steven Lu


1 Answers

cloud.google.com/go/datastore is a client library for the Cloud Datastore rest API (available from anywhere).

google.golang.org/appengine/datastore is part from App Engine API (available only from App Engine).

like image 139
dyeray Avatar answered Nov 15 '22 09:11

dyeray