beego Questions
5
I'm using Beego framework to build a web application in Go. I have to validate the incoming JSON in an API request.
I can unmarshal the JSON into a struct which works fine, but I want to validate...
Bouton asked 30/5, 2019 at 12:26
4
When I ues beego/orm to operate postgresql database,there is an error like this "missing Location in call to Time.In".
code example
type dataTest struct {
Id int `pk:"auto"`
Data time.Time `orm...
2
Solved
How do I access an array item (e.g. a[2]) in templates?
Whenever I do this I get "bad character U+005B '['"
{{ .a[2] }}
2
How to approach writing test cases for Beego app. As i can see on Beego website, they have model test case but what about controllers?
Any Framework which can help?
Bluma asked 12/2, 2016 at 7:45
1
I am running a Beego application that relies on updates in /etc/hosts (via Docker links) to find other servers. /etc/hosts updates fine but the application will not use new hosts unless it is eithe...
1
Solved
I have an ecmascript 7 browser application running on http://localhost:3000 in a Firefox 44.0.2 browser. It is posting to a Beego 1.6.0 server running on https://localdev.net:8443. The 'localdev.ne...
Gimmick asked 5/3, 2016 at 18:20
1
Solved
Currently I'm using following commands at the beginning of each function that accesses the database.
o := orm.NewOrm()
o.Using("default") // Using default, you can use other database
It feels l...
1
I'm working with Beego's convenience methods for parsing request body values and have the following:
Router file:
apiNamespace := beego.NewNamespace("/api")
apiNamespace.Router("/sessions/goog...
Sublimity asked 22/6, 2015 at 14:43
1
© 2022 - 2024 — McMap. All rights reserved.