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: how to create an upload form to store files in MySQL database?

I am making an web application in beego. I am new in both go and beego. I want to save a pdf file in mysql database. In php we can easily do that but in beego i am facing issue. Mysql type blob is used to store pdf files. But in go blob is not a…
Sumit Rathore
  • 571
  • 2
  • 7
  • 19
0
votes
1 answer

Getting Beego to work on AWS

I'm currently looking for a place where I can read about running the Beego (or similar GOlang) framework on AWS. Would anyone know a place?
freetoplay
  • 657
  • 2
  • 8
  • 23
0
votes
1 answer

Go session timeout when user not send data to Go web server in 3 minutes

I will use Go to build a Web server. Now I want to have a session id returned to a user login with username and password. And I think I am ok with the login procedure. the user will use session id each time he wants to post data. However, after the…
Peter Hon
  • 321
  • 2
  • 6
  • 10
0
votes
2 answers

Using CSS in beegae

I'm using the Beegae package and Google Cloud SDK. My project works, but I'm having trouble accessing my CSS file. It's located in static\css in my project's root (I use Windows). I tried SetStaticPath, setting DirectoryIndex to true, and setting…
Ross Albertson
  • 181
  • 2
  • 5
-1
votes
1 answer

How get user input in models for build query in Beego

For my project, I have to use a variable which contains user input for build my query in the models. The user input is recover in my login controller. username := l.GetString("username") I need it in my query in the models for the WHERE …
Kentosh
  • 11
  • 3
-1
votes
1 answer

How to set the project httpport in the non-appconf beego project?

There is an open-source project: in the application I do not find the httpport config, when I build and run it, there use the 8080. I want to change it. but how?
user7693832
  • 6,119
  • 19
  • 63
  • 114
-1
votes
1 answer

How do I wait for the termination of my goroutines in beego

I have n number of goroutines waiting on a task channel. These goroutines are responsible for performing these tasks. Currently, I'm using beego as my web golang framework. When do I signal termination to my goroutines in a beego application? How do…
ABAA
  • 101
  • 1
  • 12
-1
votes
2 answers

Nested map return json array[]

How can I create a nested JSON array? Is there any other easy way to do it? I tried this: var m1 = make(map[string]interface{}) m1 = append(tickets, ptotal) //error is here i.Data["json"] = m1 i.ServeJSON() but it shows this…
Elliot
  • 598
  • 6
  • 25
-1
votes
1 answer

Routing like Sub Directory in Beego

As of now i am routing like the following: beego.Router("/detailed", &controllers.MainController{}, "get:Detailed") Instead i want to route like this: beego.Router("/detailed/[some-product-name]", &controllers.MainController{}, "get:Detailed") i…
-1
votes
1 answer

Use beego orm to create table automatic

Now I create a table to record users information,and for every user, I will create a table to record their behavioral record when they register in my website. How I can achieve this, what I do is create a table(the table name is userid_behavioral)…
zhougb3
  • 29
  • 3
-1
votes
1 answer

Beego c.ServeJson() returning empty

I'm trying to return a struct as a JSON in my golang app, as seen here Beego json return example And this is my code: type RespJson struct { value1 string `json:"value1"` value2 string `json:"value2"` } func (c *ApiController) Prepare() { …
cjf93
  • 317
  • 2
  • 11
-1
votes
1 answer

Golang Dialer in Cloud Foundry

I am trying to access a URL that gives me a JSON response, and said URL is only accessible when I am connected to my company's VPN. Using the Standard Golang Library, the code below is getting an error even when I am connected to my company's…
Floating Sunfish
  • 4,920
  • 5
  • 29
  • 48
-1
votes
1 answer

Beego and Https

Tried to set up https, as described here: https://github.com/astaxie/beego/issues/401 and got this in the logs: 2016/09/28 14:05:34 [I] [asm_amd64.s:2086] https server Running on https://127.0.0.1:10443 2016/09/28 14:05:37 [server.go:2315] [HTTP]…
NaN
  • 598
  • 3
  • 15
-1
votes
1 answer

getting fields blank in golang mgo

I was trying few exapmles using beego with mongo. you can find my source at : https://github.com/wsourabh/bapi but while calling the v1/accounts/:id I am always getting the response as curl -v…
Sourabh Jain
  • 55
  • 1
  • 4
-1
votes
1 answer

upload and save file using browse

html i have tried is
and now i want this browsed file to be stored in some location with file name remaining same. using beego as web…
Vijay Kumar
  • 597
  • 2
  • 8
  • 27
1 2 3
18
19