我创建了一个名为votes Which 的mongo集合,即使在将软件包更新到最新的流星版本之后也能正常工作.我不记得改变了工作代码的任何部分但是我得到了这个错误.我使用meteor update命令更新了项目,并在更新后立即对其进行了测试.它成功地运行了,但我不知道为什么我得到这个错误.而且,不确定我应该添加哪个源文件来获取帮助...
任何人都能解释一下吗?
W20141025-21:29:08.640(6)? (STDERR)
W20141025-21:29:08.641(6)? (STDERR) /home/wasi/.meteor/packages/meteor-tool/.1.0.34.k7p01x++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:173
W20141025-21:29:08.641(6)? (STDERR) throw(ex);
W20141025-21:29:08.642(6)? (STDERR) ^
W20141025-21:29:08.693(6)? (STDERR) Error: A method named '/votes/insert' is already defined
W20141025-21:29:08.695(6)? (STDERR) at packages/ddp/livedata_server.js:1439
W20141025-21:29:08.696(6)? (STDERR) at Function._.each._.forEach (packages/underscore/underscore.js:113)
W20141025-21:29:08.697(6)? (STDERR) at _.extend.methods (packages/ddp/livedata_server.js:1437)
W20141025-21:29:08.697(6)? (STDERR) at Mongo.Collection._defineMutationMethods (packages/mongo/collection.js:884)
W20141025-21:29:08.698(6)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:208)
W20141025-21:29:08.699(6)? (STDERR) at app/collections/collection.js:1:43
W20141025-21:29:08.700(6)? (STDERR) at app/collections/collection.js:58:3
W20141025-21:29:08.701(6)? (STDERR) at /home/wasi/AI/OVS/.meteor/local/build/programs/server/boot.js:168:10
W20141025-21:29:08.702(6)? (STDERR) at Array.forEach (native)
W20141025-21:29:08.702(6)? (STDERR) at Function._.each._.forEach (/home/wasi/.meteor/packages/meteor-tool/.1.0.34.k7p01x++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
=> Exited with code: …Run Code Online (Sandbox Code Playgroud) 我们可以使用以下语法进行go变量声明
var num int
var str string
Run Code Online (Sandbox Code Playgroud)
但做同样的事情还有什么简写吗?
例如我们可以在python中简单地说:
num = 13
strings = "Hello World"
Run Code Online (Sandbox Code Playgroud)
甚至
num, strings = 13,"Hello World"
Run Code Online (Sandbox Code Playgroud)