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

how to delete a value from session with revel

Is there a way to delete the value from session witch revel the go web framework? I have a function for validate captcha for user input, and I set the value of captcha in session, and delete the captcha from session if there nothing to do for client…
sope
  • 1,619
  • 5
  • 19
  • 37
0
votes
0 answers

Go / Revel : using / importing modified version of package an external package?

Here is a thing I don't understand. I "go get" a go package on github. Then, I wanted to modify it. So, I forked it and change the name. Then, "go get" once more, with my new repo name. I changed my import lines and then : "revel run". My app was…
Sébastien Le Gall
  • 620
  • 1
  • 5
  • 13
0
votes
0 answers

Revel framework benchmarking http request dev vs prod

I've deployed a web framework in Revel and in the last couple of times I've been benchmarking my development and production app and noticed a considerable difference of time for the same request. My configs for both are the most simple possible,…
0
votes
2 answers

Pass interface object without declaring a struct

How can I pass an Interface{} object without declaring a Struct? for example when I'm using the Revel framework I want to return an error on a specific case. The following example is not working, I tried various conventions nothing worked, whats…
Dino
  • 65
  • 1
  • 4
0
votes
1 answer

How to deploy revel framework(Go lang) using nginx

I like to ask, how can i deploy my revel framework app using nginx in different linten port, for example port 8089. Thank you
joshua29
  • 97
  • 1
  • 1
  • 9
0
votes
1 answer

Can't revel save a session in WebSocket Controller?

I want create a Goroutine for each user to send websocket data sequentially. So, I wrote a code as below. func (c User) List(ws *websocket.Conn) revel.Result { disconnect := make(chan bool) if c.Session["connected"] != "true" { …
uzimith
  • 411
  • 2
  • 6
  • 9
0
votes
0 answers

How can I deploy revel web app on Openshift?

I tried to searching on some of guides on internet, but actually could not deploy revel app on Openshift successfully. I wonder why does not have any guidance to deploy revel app (step by step) on revel group or any related one. Anyone used to…
thangchung
  • 2,020
  • 2
  • 17
  • 28
0
votes
2 answers

Golang revel framework hot-reload in docker environment

I'm trying to set up golang environment as described in this great post. I'm using Docker on OS X 10.10 with boot2docker (v1.3.0) and fig.sh (1.0.1). Everything runs fine, but revel's hot-reload not working at all. Anyone experienced same problem or…
yoma
  • 1
  • 2
0
votes
2 answers

Golang Revel Job spec every 1st monday on every month

I'm using golang revel and I need a job to be run every first monday of every month, a quartz cron spec for that would look like this: 0 0 0 ? 1/1 MON#1 But robfig/cron doesn't accept a spec like that, hence neither revel/jobs. Anyone knows how can…
worg
  • 55
  • 1
  • 5
0
votes
0 answers

Status Code 302 found on POST request using Angular, Revel and Go

I am using Revel + angular for my application. The index page is the login interface, and once you are successful, you should be directed to the dashboard.html page. The problem is once I have made a POST request, I get a GET request with my…
WarrenV
  • 230
  • 1
  • 2
  • 9
0
votes
1 answer

Golang template.ParseFiles "not a directory" error

I'm trying to render just one template: root_path, err := osext.Executable() if err != nil { return err } template_path := root_path + "/app/views/mailtemplates/" + "feedback.html" fmt.Println(exist(template_path)) tmpl, err :=…
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
3 answers

Different actions use same template in Revel

The Revel manual says: Given a controller named Hello with an action named World, Revel will look for a template file named views/Hello/World.html. Is there a way to use the same template with different actions in Revel? Like actions named World…
clinyong
  • 1,675
  • 3
  • 14
  • 22
0
votes
3 answers

gvm setting GOPATH in ubuntu 14.04

I installed gvm with go1.3, what next? I'm trying to build Revel, but I have the error: can't load package: package github.com/robfig/revel/cmd: cannot find package "github.com/robfig/revel/cmd" in any of: …
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
1 answer

Is Golang's Revel able to be deployed as binary?

One of my concern about writing Web Apps using non-compiled language (Ruby, PHP, Javascript (server side), etc) is my source code can be copied and modified by another person and then they could sell it, claim it as their own. I'm seeking another…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
0
votes
1 answer

index out of range when trying to pass parameter to url

I currently use revel as underlying webframework. My template/logic is very basic. I fetch a []*someObject from the database and want to display it in a table. {{ if .objs}} {{ range .objs }} {{ .Title }}
Julius F
  • 3,434
  • 4
  • 29
  • 44
1 2 3
13
14