【发布时间】:2015-05-10 14:08:19
【问题描述】:
我正在使用 Memcache Go API 编写一个小代码来获取存储在其中一个键中的数据。这是我使用的几行代码(从Go app-engine docs得到代码)
import "appengine/memcache"
item := &memcache.Item {
Key: "lyric",
Value: []byte("Oh, give me a home"),
}
但是第 2 行给了我一个编译错误"expected declaration, found 'IDENT' item"
我是 Go 新手,无法弄清楚问题
【问题讨论】:
标签: google-app-engine go memcached