205 questions
1
vote
0
answers
122
views
How do I generate a model scaffold in golang-revel?
I read the documentation and spent 2-3 hours playing around with revel.
However I wasnt able to generate a model controller view similar to the booking example in https://github.com/revel/examples, ...
1
vote
0
answers
104
views
How to handling multiple files upload golang revel
I'm trying to handle multiple files upload in golang-revel. Here is the documentation that i follow.
This is what i've tried
HTML
<input id="file" type="file" name="file&...
1
vote
0
answers
349
views
How to run multiple migrations on multiple databases in golang-revel
I have a project that use golang-revel and use GORM to connect to DB. I don't know how to migrate multiple databases. I have successfuly migrate with one database but struggling to migrate more than 1 ...
2
votes
1
answer
77
views
How to get dynamic app conf in golang revel
I have project that use golang-revel and in my project, i need to connect to 2 databases. Currently, i can migrate the database one by one, but if this project is getting bigger i need to be able to ...
1
vote
0
answers
200
views
How to reverse for loop in golang-revel
i'm aware that you can do for loop in revel like this
{{range $index, $element := .foo }}
{{end}}
but is there any way to reverse a for loop so that it can iterating from behind in revel-template, i'...
1
vote
1
answer
108
views
How to change dynamic variable in Revel Template
In my revel project, i have a select option that need to get selected after clicking submit button.
If i do it like this it works because .OptionType is a string so i need to compare it with string
&...
0
votes
1
answer
75
views
Is it possible to access value in a list in Revel Template [duplicate]
{{ range .foo }}
{{end}}
.
{{range $index, $element := .foo }}
{{end}}
I'm aware that you can use this like for loop, but is there any other way to access a value in array directly ...
0
votes
1
answer
4k
views
Go mod tidy find module but it's not getting to go.sum
i have a Revel project and i can't start it because everytime i run go mod tidy, it looks like finding module but it's not putting the found module in go.sum
here's my go env
GOENV = C:\Users\mycomp\...
0
votes
1
answer
2k
views
How to encode utf-8 request body to windows 1251 in go
My task is to get a json string from request body in utf-8 and encode it to win1251, so i could save it the db in win1251.
data, err := io.ReadAll(c.Request.GetBody())
if err != nil {
panic(err)
}
...
1
vote
1
answer
135
views
Trying to start an app after build, but getting "router initialize error". How to fix it?
This is what i get in terminal, looks like problem in first hook, but what's that?
Same app is working fine if just use revel run, but for some reason, when i try execute builded .exe i got that error(...
0
votes
1
answer
349
views
Running my revel application on windows 10 fail
I had problem when run my revel app on windows
it create fine but don't run when I try so only get this. any idea?
C:\Desarrollo\Web\webpro>revel run -a webpro
Revel executing: run a Revel ...
-1
votes
2
answers
1k
views
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 ...
0
votes
1
answer
2k
views
App couldn't connect to Postgresql Database with docker-compose
I'm trying to get my web application running using docker-compose.
My Dockerfile
FROM golang:1.15
WORKDIR /goprojects/vnlist
COPY . .
RUN go get github.com/revel/revel
RUN go get github.com/revel/...
1
vote
1
answer
337
views
Cloud Run and Revel Container
I have a simple site built using revel containerized in a docker image. I'm trying to run this image in Cloud Run. Unfortunately when I go to the URL for the site, I see a 502 in the browser and this ...
0
votes
0
answers
49
views
how do I start creating a web service?webix+js+revel
everybody. I am a novice developer and would like to ask for advice.At the moment, I am doing an internship at the company and I need to create an assessment Manager project.Technologies that I should ...