Questions tagged [revel]

A high-productivity web framework for the Go language.

Features

Hot Code Reload

Edit, save, and refresh. Revel compiles your code and templates for you, so you don't miss a beat. Code doesn't compile? It gives you a helpful description. Run-time code panic? Revel has you covered.

Comprehensive

Revel provides routing, parameter parsing, validation, session/flash, templating, caching, job running, a testing framework, and even internationalization.

High Performance

Revel builds on top of the Go HTTP server, which was recently benchmarked to serve three to ten times as many requests as Rails across a variety of loads.

Framework Design

Synchronous

The Go HTTP server runs each request in its own goroutine. Write simple callback-free code without guilt.

Stateless

Revel provides primitives that keep the web tier stateless for predictable scaling. For example, session data is stored in the user cookie, and the cache is backed by a memcached cluster.

Modular

Revel is built around composable middleware called filters, which implement nearly all request-processing functionality. Developers have the freedom to replace the default filters with custom implementations (e.g. a custom router).

Source: project home page

206 questions
0
votes
1 answer

revel's .flash and .error

I installed the booking app and build a small app by myself and both suffer from the inability of displaying flash errors as shown here: https://github.com/revel/revel/blob/master/samples/booking/app/views/hotels/settings.html The example view I use…
Julius F
  • 3,434
  • 4
  • 29
  • 44
0
votes
0 answers

golang revel app failing to compile after upgrading OSX command line tools

i was playing around with the revel sample bookings app (http://robfig.github.io/revel/samples/booking.html) and everything was working fine. after upgrading my OSX command line tools from the apple developer site, the app refuses to start: INFO …
nrser
  • 1,287
  • 1
  • 13
  • 23
0
votes
3 answers

Where should a programmer with NO static/compiled language exp start learning Go?

I'm an experienced software developer, but I've only worked in dynamic languages (primarily Python, PHP in the past, JavaScript, and a little Ruby). Last night, I found myself reading through the tour on the Go website's tour when I realized that…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
0
votes
1 answer

Errors deploying Go Revel app on Heroku using buildpack

I'm trying to use Go and Revel on Heroku using this buildpack https://github.com/robfig/heroku-buildpack-go-revel but it doesn't seem to work: I'm getting an error trying to use the basic revel helloworld example. $ go get…
Dougnukem
  • 14,709
  • 24
  • 89
  • 130
-1
votes
2 answers

Passing a URL as URL param

I have this route that was written with route params /properties/configurations/:name/:value and when I call with with a URL as value like that /properties/configurations/app.url/http://test.test it doesn't hit my Revel controller I guess because…
-1
votes
1 answer

could not parse line #126: mongo.database = mongo_db_test

I'm following this tutorial Golang + Revel web framework + Mongodb RESTFul generator for (revel_mgo) step by step, but when I finally end it and try to run it, it throw this error CRIT 16:11:18 revel_container.go:139: Unable to load configuartion…
-1
votes
1 answer

How to add new field in revel controller

i am using the validation example from the "revel" golang framework. in the existing code, i have added new field. however, it is not recognizing the the contents of field and always throws the error. here is the url:…
user2315104
  • 2,378
  • 7
  • 35
  • 54
-1
votes
3 answers

Using Go and Revel, getting error c.RenderArgs is Undefined (possibly outdated?)

I have a script that has some Go code with outdated revel. I ran into an issue that says: c.RenderArgs undefined (type *revel.Controller has no field or method RenderArgs) And ive tried to search around, but can't figure out what to replace it…
Tokoshiro
  • 1
  • 1
-2
votes
1 answer

Why not all key from Revel JSON response are capitalized?

I'm trying to understand how to implement POST request using Revel framework. models/login.go package models type LoginParam struct { Username string `form:"username" json:"username"` Password string `form:"password"…
anta40
  • 6,511
  • 7
  • 46
  • 73
-3
votes
2 answers

How to use Redis-based session on Revel

How to use redis based-session on Revel? I found this gist, but didn't know how to use it.. EDIT #1: my env variable GOROOT --> /usr/lib/go GOPATH --> /home/asd/Dropbox/go what i've done: mkdir -p $GOPATH/src/myapp/app/libs/session curl…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
-14
votes
1 answer

Go net/http request

Can somebody help to convert my ruby code to Go. Kindly refer to my ruby code below. query= "test" request = Net::HTTP::Post.new(url) request.body = query response = Net::HTTP.new(host, post).start{|http…
joshua29
  • 97
  • 1
  • 1
  • 9
1 2 3
13
14