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
4
votes
1 answer

Go programming cross compile for revel framework

I am using the Revel framework to make a web application. I am cross compiling it for ARM with the command GOOS=linux GOARCH=arm revel package mitm This works fine, however I have just included the library github.com/google/gopacket and now the…
amlwwalker
  • 3,161
  • 4
  • 26
  • 47
4
votes
1 answer

Can't install Revel (Unrecognized import path)

I'm a beginner in Go and I would like to use the Revel web framework. I installed: Git; Mercurial and even: Bazaar and CVS. I checked my environment variables. I set environment variable GOPATH to D:\Go and added D:\Go\bin to PATH.But I still get…
Neat Head
  • 37
  • 4
4
votes
2 answers

Complex conditional statement in golang

I recently started learning golang and Revel. Im trying to understand what exactly the below if statement does. Seems like it is doing a type check, but i dont see what the conditional achieves. Appreciate if anyone can tell me whats happening here.…
broun
  • 2,483
  • 5
  • 40
  • 55
4
votes
1 answer

Revel debugging - How to

Can some one provide some guidance about how to debug a Revel application. I might be dumb but I can't manage to do it. Some clear steps would be of real help.
Mihai H
  • 3,291
  • 4
  • 25
  • 34
4
votes
1 answer

AngularJS + Go Revel web framework for SEO in Prerender.io

I developed a web site using AngularJS and Revel. But I found the SEO in the single page application is a big problem. I checked the https://prerender.io/getting-started , but I can't found the middleware for Revel installation. Could someone help…
user2311150
  • 49
  • 1
  • 2
3
votes
1 answer

how to debug revel framework(golang) application in visual studio code(vscode)

{ "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "go", "request": "attach", "mode": "debug", "remotePath": "", "port": 2345, "host": "127.0.0.1", "program":…
Thomas Lee
  • 31
  • 2
3
votes
1 answer

Debugging revel with IntelliJ

How can we configure IntelliJ to debug revel apps? In Run/Debug Configurations, it's not at all obvious what to enter for File, Go tool arguments, and and Program arguments
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
3
votes
0 answers

Revel: -X flag requires argument of the form importpath.name=value

I am getting following error on running revel app in development mode. I am posting logs below INFO 2016/06/14 16:18:17 build.go:172: Cleaning dir tmp INFO 2016/06/14 16:18:17 build.go:172: Cleaning dir routes 2016/06/14 16:18:17 reflect.go:728:…
Paritosh Singh
  • 6,288
  • 5
  • 37
  • 56
3
votes
1 answer

Revel doesn't forward to port 443 when SSL enabled

I'm using Revel for a small app and added SSL. When I update the config to point to http.port = 443, requests to port 80 are rejected instead of being forwarded. Is there a way to fix this on the Revel Framework? Thank you. # The port on which to…
vinniyo
  • 787
  • 2
  • 8
  • 21
3
votes
1 answer

Golang return nil

I am trying to wrap my head around Golang's types and interfaces but am struggling a bit to do so. Anyways, a common pattern that I see is func Whatever() (thing string, err error). I get how all of that works, but the one thing I am confused on…
Brandon Hansen
  • 197
  • 1
  • 1
  • 8
3
votes
1 answer

Better (general) auth implementation

Currently I have a method in my BaseController and in each controller method that I need the user to be authenticated I am left with always calling this piece of code: user, err := c.getUser() if err != nil { return…
Julius F
  • 3,434
  • 4
  • 29
  • 44
3
votes
1 answer

Auto parse parameter JSON in Revel (Golang)

Revel doesn't parse JSON parameter when the content type is "application/json". How to enforce this ? Example : http://localhost:9000/foundations in POST call Foundations.Create function. Into this function I use fmt.Println("Params :", c.Params) to…
Manawasp
  • 517
  • 6
  • 14
3
votes
1 answer

Revel: pass template var to url

I want to understand how url helper works. For example, in my template I have: my super url and in controller: func (c Pages) IndexPages() revel.Result { ... } I need url…
cnaize
  • 3,139
  • 5
  • 27
  • 45
3
votes
1 answer

Gorm FirstOrCreate understanding

I'm a new one in golang and gorm and I'm trying to understand how FirstOrCreate works. I have model: type Setting struct { Id int64 Email string Phone string Skype string Country string City string …
cnaize
  • 3,139
  • 5
  • 27
  • 45
3
votes
2 answers

Go Revel framework with a non-localhost, live site

I'm trying to use Go and the Revel framework to run a simple app on my live, personal-website.com. Everything is ok when I develop locally and test localhost:8888. However after installing on my web server and running my app from root, # run revel…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
1
2
3
13 14