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

Go Namespace/Scope Issue for Global Session Management Across Multiple Packages

First let me say I'm new to Golang. Working with it for a couple of weeks now. Really like the language but... I'm having some trouble with global session management in Golang. I see how it works and I can me it work if scope is all in one…
-1
votes
1 answer

Using javascript with beego

I am new to beego and golang. I am developing a web application in beego. I am honestly not able to find out how to use javascript with beego. For example: On a particular page i am showing all users name from all department. Now i have a drop down…
Sumit Rathore
  • 571
  • 2
  • 7
  • 19
-2
votes
1 answer

How to range array in golang to not randomize predetermined key?

I have a trouble with my current golang's project. I have another package in go that result an array with pretedermined key, example : package updaters var CustomSql map[string]string func InitSqlUpdater() { CustomSql = map[string]string{ …
-2
votes
1 answer

append username and password in http request in golang

what i have tried till now is like and http request formed now is:curl -X POST http://localhost:8080/v1.0 l_httpClient_ptr := http.Client{ Timeout: timeout, } var l_resp_ptr *http.Response var l_resp_byte []byte l_resp_ptr, r_err =…
vijay
  • 303
  • 2
  • 6
  • 14
-2
votes
2 answers

How to get IP address in Go:Beego

I have an beego application where I need to get the client side IP address and send it to server in same format or string format. How can I get the IP address of the client so that I can send it to server and display on server side. l_channel_ip…
Vijay Kumar
  • 597
  • 2
  • 8
  • 27
-2
votes
4 answers

Golang beego framework to set the status code

I am using Golang to write web applications, and I use beego framework. It seems the the framework have the internal status code returned for golang web server. I am wondering is there any method in golang or beego, or other tools that can let me…
Peter Hon
  • 321
  • 2
  • 6
  • 10
-3
votes
1 answer

Timeout errors with Beego on Digital Ocean server

I want to set up Beego on an Ubuntu server (without Nginx), but I cannot visit the site and having connection out time errors. Can anyone check my steps if there is any mistake? Here are my steps: I have used bee pack to pack my code. Then, use…
Zizheng Yang
  • 141
  • 1
  • 12
-3
votes
1 answer

How can I pass connection parameter db to main.go?

I have trouble with my current works. I build an apps using beego framework, Im new in golang. First, I build other package called utils, and from that package I write some codes to access to my databases func InitFirebird() { var ( …
-3
votes
2 answers

How to add favicon.ico on beego?

my routers/default.go, I'm trying to use the original Go solution, but failed, this code can't compiled. I don't know how to replace the router with faviconHandler: func faviconHandler(w http.ResponseWriter, r *http.Request) { …
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
-3
votes
1 answer

bee is not executable

Using ubuntu15.go get github.com/beego/bee root@hao:/var/www/go/bin# ls bee root@hao:/var/www/go/bin# bee 未找到 'bee' 命令.(Bee command not found) profile: export GOPATH=/var/www/go export GOROOT=/usr/local/go export PATH=$GOROOT/bin:$PATH
-3
votes
2 answers

runtime error:Invalid memory Address or nil pointer dereference-golang

I am new to golang, am trying develop a login page with sesions. the code is building successfully but when I run in browser its saying 404 page not found.can any one help for me. Thanks in advance. Here is my code // main.go package main import ( …
A.H
  • 129
  • 2
  • 10
-4
votes
1 answer

Create table in Postgres with json type field using GoLang

I am using GoLang in the back-end and PostgreSQL as a database. I'm new to PostgreSQL database connections with Go. I'm using Beego as a back-end. I want to create a table with one of a fields of JSON type using Golang database/sql package and…
Rajesh Kumar
  • 176
  • 2
  • 3
  • 13
-4
votes
1 answer

WHY is my installation of the beego web framework not working?

Andres-Air:~ iivri.andre$ go get github.co/beego/bee package github.co/beego/bee: unrecognized import path "github.co/beego/bee" (https fetch: Get https://github.co/beego/bee?go-get=1: dial tcp 199.59.243.120:443: i/o timeout It keeps showing me…
iivri andre
  • 51
  • 2
  • 7
-4
votes
1 answer

"undefined: beego in beego.AppConfig" - How to access Beego configuration parameters

As proposed here http://beego.me/docs/mvc/controller/config.md, I add parameters for MySQL user/password and when trying to access them (for example by using beego.AppConfig.String("mysqluser")) I get an "undefined: beego in beego.AppConfig"…
tgogos
  • 23,218
  • 20
  • 96
  • 128
-4
votes
3 answers

How to make pdf file by reading content from database using beego?

I read a pdf file and then store its raw content into database. Now i want to read that content from database and create a pdf so that user can download it. For this i read the content and write it to file with .pdf extension. But the result in an…
Sumit Rathore
  • 571
  • 2
  • 7
  • 19
1 2 3
18
19