goinggo / beego-mgo Goto Github PK
View Code? Open in Web Editor NEWSample Application For Using the BeeGo web framework with MGO
License: Other
Sample Application For Using the BeeGo web framework with MGO
License: Other
Hi there, I've followed the instructions to install beego-mgo but the following error appears when trying to execute the scripts:
cannot find package "github.com/nicksnyder/go-i18n/i18n/locale" in any of:
/usr/local/Cellar/go/1.3/libexec/src/pkg/github.com/nicksnyder/go-i18n/i18n/locale (from $GOROOT)
/Users/######/go/src/github.com/nicksnyder/go-i18n/i18n/locale (from $GOPATH)
I've installed this package but there is no "locale" folder on the project.
Any thoughts?
Regards, Javier.
there are two questions:
1ใ/beego-mgo/controllers/baseController/baseController.go:172:16:baseController.ServeJson()
undefined .The function is error, and the right is baseController.ServeJSON()
.
2ใcontroller.TplNames
is error , the right is controller.TplName
.
I put together this sample app
https://github.com/goinggo/beego-mgo
I was able to test my endpoints when using Get functions. It is not working in this application with more complicated routings. Would you be willing to look at the tests and point me in the right direction.
Once I get this testing working, I will write a more detailed post about the framework and my experience.
how does your code return something like this?
count, err := c.Find(bson.M{"email": entry.ResourceId}).Limit(1).Count()
Error occurred when run:
$ go run main.go
# mongodm-example/controllers
controllers/base.go:23: undefined: models in models.User
I think that my mongo do not get ready, How to write data into mongo ? for example, SQL files?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.