这些GAE库有什么区别? [英] What are the differences between these GAE libraries?

查看:120
本文介绍了这些GAE库有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Go的Google App Engine文档中,它们可以互换使用库。以下是一个示例:

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"

我应该使用哪些库以及哪些是主要区别? / p>

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

推荐答案

cloud.google.com/go/datastore是Cloud Datastore rest API的客户端库(可从任何地方获得)。

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

google.golang.org/appengine/datastore是App Engine API的一部分(仅适用于App Engine)。

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

这篇关于这些GAE库有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆