-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help getting started with goji #8
Comments
Did you run |
Oh, no I didn't! I'm so sorry. I was too excited about Goji. Wait, I ran it. Now it is running successfully, saying Starting Goji on On 23 April 2014 18:42, Carl Jackson notifications@github.com wrote:
facebook.com/irfan.profile |
Because you are specifying in your routes that goji is to match requests on the following URL:
You would want to specify that url in your browser. So for your example: |
oh, beautiful! What I'd like to do is have a form and then on submit, sends what is in the textField to go and then print hello, name on the confirmation page. Can someone help me with that? |
@theirf it's not an issue related to |
True, but I figured the best place to get help with how to use goji would
|
@theirf — for my own sanity, I'd actually like to keep the issues page on Github focused on issues with Goji itself. I'll look into starting a mailing list or IRC channel some time this weekend. As for your original question, this can be accomplished using an HTML form with an "action" attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that POSTs to another route on your site. You can then dig the form data from Go's |
Apologies if I am being a noob / novice, but I am just getting started with Go.
I'm trying to run the sample programme and I am getting an error.
Here is the contents of hello.go:
hello.go:7:9: cannot find package "github.com/zenazn/goji" in any of:
/usr/local/go/src/pkg/github.com/zenazn/goji (from $GOROOT)
/Users/Irfan/Projects/Go/src/github.com/zenazn/goji (from $GOPATH)
hello.go:8:9: cannot find package "github.com/zenazn/goji/web" in any of:
/usr/local/go/src/pkg/github.com/zenazn/goji/web (from $GOROOT)
/Users/Irfan/Projects/Go/src/github.com/zenazn/goji/web (from $GOPATH)
What am I doing wrong?
The text was updated successfully, but these errors were encountered: