I've just installed Go from the package on the golang site.
When trying to build (or run) import getting an import error, but can't figure out why:
go build world2.go
This produces the error:
# world2.go:3:8: import "world": cannot find package
| source_topic = Topic.find(2813) | |
| destination_topic_id = 2811 | |
| source_topic.questions.each do |q| | |
| attribs = { | |
| account_id: q.account_id, | |
| created_by: q.created_by, | |
| item_bank_id: q.item_bank_id, | |
| topic_id: destination_topic_id, | |
| points: q.point, |
I've just installed Go from the package on the golang site.
When trying to build (or run) import getting an import error, but can't figure out why:
go build world2.go
This produces the error:
# world2.go:3:8: import "world": cannot find package
| greeting = "Hello" | |
| def greeter | |
| puts greeting | |
| end | |
| greeter | |
| # undefined local variable or method `greeting' for main:Object (NameError) |
| Started by user MarkBennett | |
| Building in workspace /var/lib/jenkins/jobs/proj1/workspace | |
| Checkout:workspace / /var/lib/jenkins/jobs/proj1/workspace - hudson.remoting.LocalChannel@5c57b13a | |
| Using strategy: Default | |
| Last Built Revision: Revision 5a57496f7256cdaad9b9a227cb1e16c6df12855c (origin/master) | |
| Checkout:workspace / /var/lib/jenkins/jobs/proj1/workspace - hudson.remoting.LocalChannel@5c57b13a | |
| Fetching changes from 1 remote Git repository | |
| Fetching upstream changes from git@github.com:burmis/proj1.git | |
| Commencing build of Revision 5a57496f7256cdaad9b9a227cb1e16c6df12855c (origin/master) | |
| Checking out Revision 5a57496f7256cdaad9b9a227cb1e16c6df12855c (origin/master) |
| <html> | |
| <head> | |
| <title>HTML5 Photo Booth</title> | |
| </head> | |
| <body> | |
| <h2>HTML5 Photo Booth</h2> | |
| <video id="live" autoplay></video> | |
| <canvas id="snapshot" style="display:none"></canvas> |
| Copyright (C) 2012 Mark Bennett, Paul Irish, Aicke Schulz | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| of the Software, and to permit persons to whom the Software is furnished to do | |
| so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all |
| import unittest | |
| class MyTestCase(unittest.TestCase): | |
| @classmethod | |
| def make_an_example_of(cls, example_name, example): | |
| def example_test_template(self): | |
| self.assertEqual(stuff, example) | |
| setattr(cls, "test_an_example_of_%s" %(example_name), example_test_template) | |
| MyTestCase.make_an_example_of("Bob") |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215: warning: default `to_a' will be obsolete | |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215: warning: default `to_a' will be obsolete | |
| FAIL SittingTest#test: with a cancellation deadline should be able to unbook the day of. (0.42s) | |
| Failed assertion, no message given. | |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/gems/minitest-2.6.2/lib/minitest/unit.rb:179:in `assert' | |
| /Users/mark/versioned/yardstick/test/unit/sitting_test.rb:496:in `__bind_1321809344_83389' | |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:in `call' | |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:in `test: with a cancellation deadline should be able to unbook the day of. ' | |
| /Users/mark/.rvm/gems/ree-1.8.7-2011.03@yardstick/ge |
| class Item < ActiveRecord::Base | |
| extend SpecialScopes | |
| end |