It works!
0
hb It works!... and the current tinestanp
is (Ceurrent)}
Just ike the variables we set while importing
templates into a view, we can access the
value ofa variable withthe lovely (variable)
expression. If you want to pass through
‘more than one variable, all you have to dois
separate each valuewith a comma and access
them exactly the same way.
return c.fender(ourrent, myNane,
location, ete)Generate webpage templates with Go + Revel
Easily deal with the tricky business of creatinga server and handling network requests
ee
Recetas
Not aside, it's bocome alittle unusual to 900
8 compiled anguage running a web service.
This is largely due to most ofthe compiled
languages having been conceived in atime
before web dovelopment was realy in sing,
‘As such, things tke easy-to-use websockets
‘and the lke are tough to implement, so we
have a plethora of Nodajs/Ruby Gems!
Python modules to help us along with that
because theyhavealowerbariertoentry.
(Of course, the downside with. these
langvages is that they aren't compiled - thoy
are fast but they stil cant ute match the
performance of @ compiled language. Go
isthe best of both wari: it compiles so it
is fast but i also modern, go funky new
thingslke vebsockats aren’ problem,
Define aroute
good goss wd bo nad one fo
ton owl mie ats bense eve
Sat po afin he rue tere De
Ie cpp ars elon ar
at ine ie
jou ht purecshestoncoime. you
stones other toh
svat ocolar hand ate ana
Ther the a gig tae ul bs
handlingthe values ofa form.
7 Batefomtanding
Enter the app/views folder, create a
new file form html and insert the following