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
0 answers

Regex Insert Filter on Router Beego Framework

I try to use regex that not contain url prefix /token like this beego.InsertFilter("^((?!token).)*$",beego.BeforeRouter,token_construct.APIBaiscAuth("ok","ok")) But not work, all url prefix still skip the filter function. How to use regex in…
Muhamad Yulianto
  • 1,573
  • 3
  • 22
  • 32
0
votes
1 answer

Dynamic struct with result object in Go Language

I want to create result object json with dynamic structure of data, ex in func1 the result is like this { 'result': 'this is result', 'content': { 'func1' : 'value', 'some_desc_func1': 'value' } } and func2 maybe the result is just…
Muhamad Yulianto
  • 1,573
  • 3
  • 22
  • 32
0
votes
1 answer

Beego raw sql - Type conversion issue

Here is the code used inside the Beego MVC architecture. var maps []orm.Params //Pallets Completed already. o.Raw("Select SUM(Things) as AllTheThings FROM SomeTable").Values(&maps) numThings :=…
0
votes
1 answer

beego template - using key or value of a map as key of other map or pass it to template function

I am having below JSON structure. func getJsonMappings() *string { data := `{ "CategoryGroup": { "Category subgrp1": ["type1", "type2"], }, "CategoryGroupDetail" : { "type1":{ …
Gaurav Pant
  • 4,029
  • 6
  • 31
  • 54
0
votes
2 answers

ImageMagick Go API HTTP Hangs on ReadImageBlob

I have written an Beego HTTP server, that when a user hits an endpoint: the server requests an image from another server (for instance imgur) it reads the bytes of the image and passes them to gographics/imagick this (should) resize the image and…
amlwwalker
  • 3,161
  • 4
  • 26
  • 47
0
votes
3 answers

beego QueryTable table name: `cpes` not exists

I have this pice of code in beego: o := orm.NewOrm() qs := o.QueryTable("cpes") and I now that beego connects well with the database, and the database have the 'cpes' table, but I keep getting an error becouse beego don't find the table. ¿How can I…
user1478621
  • 1
  • 1
  • 3
0
votes
1 answer

How to modify the directory structure of a beego project?

bee :1.4.1 beego :1.6.1 Go :go version go1.6.3 windows/amd64 set GOARCH=amd64 set GOBIN= set GOEXE=.exe set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=C:\GoSites set GORACE= set GOROOT=C:\Go set…
Colleen Larsen
  • 693
  • 3
  • 12
  • 24
0
votes
1 answer

Router Not Finding Controller Beego

I had a beego application that was working, and then my router stopped finding the controller, and I have no idea why. No matter what url I type, the router does not direct to the controller complaining nomatch 2016/07/26 17:24:50…
andor kesselman
  • 1,089
  • 2
  • 15
  • 26
0
votes
0 answers

Use slim/temple as template extension in beego

Its possible to use golib/temple or any other template engines like "slim lang" in beego framework? Beego documentation mentions its possible to use beego.AddTemplateExt here. Thanks!
0
votes
1 answer

How to create a custom recover in Beego?

How to override Beego's recoverPanic? I have set the flag recoverpanic = false and write my own recover but have no luck, it just print the panic message to the console instead jumping to my recover function. func main() { defer recoverPanic() …
windyzboy
  • 1,358
  • 16
  • 20
0
votes
1 answer

How to get values from beego AppConfig and render it in HTML template?

I want to get value of a key defined in beego's app.conf and render in html pages. As per documentation on http://beego.me/docs/mvc/view/template.md I can get value of AppConfig by using config function in templates. However there is no example in…
Reekdeb Mal
  • 728
  • 1
  • 7
  • 13
0
votes
1 answer

Cannot parse posted form data from beego

I'm new to go and experiencing beego. I'm trying to get the posted form data from:
{{.xsrfdata}} Title:
Body:
Karlom
  • 13,323
  • 27
  • 72
  • 116
0
votes
3 answers

AngularJS and Go POST Request Method Not Allowed

Im currently working on a sample project and Im using Go and AngularJS I am new at this. I encountered a 405 Error Method Not Allowed after executing this codes. sample.js var app = angular.module('sample', []); app.controller('sampleCtrl',…
0
votes
1 answer

Beego framework - api project - can I have folder structure in controller folder

I want to group my controllers in some folder structure. Application works if controllers are directly in 'controllers' folder. Once I move controller to some controllers sub folder, router is not loading controller at all. (there's not compile…
0
votes
2 answers

How beego(Go App Framework) will reload the application if there is any change in the conf file?

I have developed the application using Golang Beego framework(http://beego.me/) and it is running in the production. Suppose I edit the configuration file which is conf/app.conf, how can my app will be reloaded with restarting/rebuilding the…
CodeQuestor
  • 881
  • 1
  • 11
  • 25