Questions tagged [beego]

Beego is an open-source, high-performance, modular, full-stack web framework for the Go programming language.

Beego is a Web framework for rapid development of Go applications. It can be used to develop APIs, web apps and backend services quickly. It is a RESTful framework. It is inspired by Tornado, Sinatra and Flask and has integrated some of Go-specific features such as interfaces and struct embedding.

Features

  • RESTful support
  • MVC architecture
  • Modularity
  • Auto API documents
  • Annotation router
  • Namespace
  • Powerful development tools
  • Full stack for Web & API

Useful links

Official documentation

Github repo

Beego community

Beego Books

285 questions
0
votes
1 answer

Beego validation accepts invalid data

I am trying to validate some forms using Beego validation, but it is not working at all: invalid data passes without errors. This the relevant code, I don't know what is wrong. Can you point me at the…
0
votes
2 answers

Error when try to install BEEGO

I am very new with GO, and when I tried to install the framwork beego on my Windows 8 Desktop or in a VirtualBox with Debian8 I had the same error: sergi@odoo:~$ go get github.com/astaxie/beego #…
0
votes
1 answer

can i call a controller directly from main without router in beego

I have a controller say XXController from package xx. Now i want this controller to be called as an function like xx.XXController{}. And the login inside controller should get executed.
Vijay Kumar
  • 597
  • 2
  • 8
  • 27
0
votes
1 answer

upload file with same format using beego

File Uploading is done but not with the same name as filename i have tried this in html file Go upload
Vijay Kumar
  • 597
  • 2
  • 8
  • 27
0
votes
1 answer

Couldn't insert new article. Reason: %!(EXTRA sqlite3.Error=no such table: articles) Beego

Getting this error Couldn't insert new article. Reason: %!(EXTRA sqlite3.Error=no such table: articles when trying to add an article to table articles. \ models.go package models type Article struct { Id int `form:"-"` Name …
Oladayo Oyelade
  • 225
  • 2
  • 9
0
votes
0 answers

How can I show elements with only even index in a view(using Beego framework)?

So the problem is that I can not show even elements in my view file. I have the following code in my view file: {{range $i, $stream := .d}} {{if $i % 2 == 0}} {{$stream.Channel.Status}} {{end}} {{end}} From…
ryzhak
  • 395
  • 5
  • 13
0
votes
2 answers

How to use beego's localize?

I tried to use i18n but it can't work i18n is below. http://beego.me/docs/module/i18n.md routers/init.go: // Initialized language type list. langs := strings.Split(models.Cfg.MustValue("lang", "types"), "|") names :=…
shinriyo
  • 344
  • 3
  • 17
0
votes
1 answer

How to select module name in urlfor function inside template

Im working in a beego application with 2 modules, and has a controller with the same name in both modules. When I use {{urlfor}} in template the generated url is linking with the other module. Anybody know if its posible select module name in urlfor…
Juan de Parras
  • 768
  • 4
  • 18
0
votes
1 answer

Filter patterns in router

For each user, the Beego app creates a directory under /static/users/ in the form of: /static/users/USER_ID/private and /static/users/USER_ID/public, where USER_ID the ID of each user. I want to protect the private files so that only the user owning…
Stef K
  • 469
  • 8
  • 13
0
votes
1 answer

how to get the finally sql string in the beg orm

I want to get the finally sql string in the beego's orm. but I can not find the interface that can get sql string. I want to make a Logging for database Operating. I want to find other ways that do not need to turn on the orm.Debug. orm.Debug =…
soapbar
  • 2,411
  • 4
  • 18
  • 24
0
votes
1 answer

How can I use Riak connection pool with Beego Framework

I'm developing a back-end using Beego and Riak. I'm searching for a way to keep the riak connection pool alive but I cannot find nothing in documentation besides SQL related. I'm really freshman to the Go language (started learning 2 days ago) and…
joaonrb
  • 965
  • 11
  • 30
0
votes
2 answers

Returning JSON object in beego

I am using beego (golang framework) and I am trying to use jquery ajax to update my web pages after the go function finishes. However I am stocked at returning JSON object so that the jquery could handle it in its success function. Is there any way…
lkb
  • 11
  • 1
0
votes
1 answer

running beego in port 80 and apache

I was trying to run my beego in google compute engine instances. I have it running on port 8080. But when I tried to change it to port 80, it will have an ListenAndServe Permission denied error. What shall I do to make it run on port 80. Also can I…
lkb
  • 11
  • 1
0
votes
4 answers

Q: Getting Build Error "Invalid Import Path"

I'm stuck on running the BeeGO app using "bee run" it says The thing is I've already have setup properly my GOPATH to D:/Web Dev/GO/BeeGO/test-project/ and also routers path does exist and I've tried to manual build the file but it doesn't generate…
Rene Padillo
  • 2,250
  • 4
  • 26
  • 39
0
votes
0 answers

Deploying beego application in openshift

I've created a go application in openshift using the go cartridge but when I've updated my code to use beego when I push it I keep getting errors like: An error occurred executing 'gear postreceive' (exit code: 1) and Error message: CLIENT_ERROR:…
ginad
  • 1,863
  • 2
  • 27
  • 42