beego

    -4热度

    1回答

    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

    0热度

    1回答

    我有下面的JSON结构。 func getJsonMappings() *string { data := `{ "CategoryGroup": { "Category subgrp1": ["type1", "type2"], }, "CategoryGroupDetail" : { "type1":{

    1热度

    1回答

    我有两个型号: type MainFields struct { Id int `orm:"auto"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now;type(datetime)"` } type Game struct

    2热度

    1回答

    我已经开始开发Web应用程序,其中后端是golang.I m使用beego框架来开发此应用程序。以前我用来在java.Java中编程有过滤功能来过滤请求通过url.I才知道我们能在beego实现它读取documentation.There后,他们已经给下面的示例代码 var FilterUser = func(ctx *context.Context) { if strings.HasP

    -1热度

    1回答

    试图建立HTTPS,如下所述:https://github.com/astaxie/beego/issues/401和得到这个在日志中: 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] [H

    -1热度

    2回答

    我试图使用VueJS向Beego框架(GoLang)中编写的应用程序发出简单的POST请求,但应用程序没有看到任何输入请求。当我使用标准格式请求(没有ajax)时,一切正常。 这是我的VueJS代码: storePost: function(event) { axios.post("/api/posts/store", {body: "test"}).then(function(resp

    -4热度

    1回答

    我在后端和PostgreSQL中使用GoLang作为数据库。我是Go与PostgreSQL数据库连接的新手。我使用Beego作为后端。我想使用Golang database/sql包和lib/pq创建一个包含JSON类型字段之一的表。这是我做 这是我创建表查询 createtable:= `CREATE TABLE apply_leave1 ( leaveid serial PRIM

    0热度

    3回答

    我在beego这个PICE代码: o := orm.NewOrm() qs := o.QueryTable("cpes") ,我现在beego与数据库连接好,数据库有“的CPE”表,但我不断收到错误,因为beego没有找到表格。 ¿如何进一步调试?

    1热度

    1回答

    我在我的应用程序中使用golang和postgreSQL版本9.5.5。我使用“github.com/lib/pq”作为我的数据库驱动程序来连接数据库。我的一个领域有时区的时间戳。我想更新到当前时间。所以我用下面的代码: Note:I m using beego as my framework and use orm to compute my queries. _, err := o.Raw("

    1热度

    1回答

    我在我的应用程序中使用golang和postgreSQL版本9.5.5。我使用github.com/lib/pq作为我的数据库驱动程序连接到数据库。我的一个领域(resetdate)有类型日期。我想补充一年的时间。所以我用了下面的代码: 注意:我使用beego作为我的框架,并使用orm来计算我的 查询。 _, err := o.Raw("UPDATE resetdate=resetdate + i