Git Product home page Git Product logo

Comments (7)

zenazn avatar zenazn commented on September 3, 2024

Did you run go get github.com/zenazn/goji?

from goji.

theirf avatar theirf commented on September 3, 2024

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
[::]:8000 in the terminal, but that's it. I go to localhost:8000 and
nothing is there.

On 23 April 2014 18:42, Carl Jackson [email protected] wrote:

Did you run go get github.com/zenazn/goji?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-41223705
.

facebook.com/irfan.profile
google.com/+irfanmir
@theirf

from goji.

hoopsho avatar hoopsho commented on September 3, 2024

Because you are specifying in your routes that goji is to match requests on the following URL:

goji.Get("/hello/:name", hello)

You would want to specify that url in your browser. So for your example:

http://localhost:8000/hello/theirf

from goji.

theirf avatar theirf commented on September 3, 2024

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?

from goji.

vasylnakvasiuk avatar vasylnakvasiuk commented on September 3, 2024

@theirf it's not an issue related to goji code and project.

from goji.

theirf avatar theirf commented on September 3, 2024

True, but I figured the best place to get help with how to use goji would
be here.
On Apr 24, 2014 4:40 AM, "Vasyl Nakvasiuk" [email protected] wrote:

@theirf https://github.com/theirf it's not an issue related to gojicode and project.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-41256495
.

from goji.

zenazn avatar zenazn commented on September 3, 2024

@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 http.Request object. There are many tutorials online covering POSTing data, and while I doubt any will be Goji-specific, I'm sure you'll find that the principles and ideas—as well as all of the HTML—translate well.

from goji.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.