因为数据关联的太多,然后table展示的时候,需要扩展行来展示数据,但是扩展行的数据关联的太多,所以没有必要一次性全部展示出来,可以按照需要,点击再进行请求数据,再进行渲染...

但是为了实现这个需求

...

Read More...


xorm 通过结构体获取到 表名

xorm 获取到 表名

因为数据库迁移过来的,有自动生成的 结构体!

然后 不想把 表名写死(担心以后会有变动)

然后 看了下源码,可以根据结构体获取表名

var engine *xorm.Engin
...

Read More...


goroutine stack exceeds 1000000000-byte limit

runtime: goroutine stack exceeds 1000000000-byte limit
fatal error: stack overflow

循环调用自己,会造成溢出

我出现的

...

Read More...


incorrect region, please use up-z1.qiniup.com

incorrect region, please use up-z1.qiniup.com

七牛上传出了问题!

因为地区和域名不对应!

修改下 Zone 即可

    cfg := storage
...

Read More...


Failed to load http://127.0.0.1:8090/console/post: No 'Access-Control-Allow-Origin' header is presen
...

Read More...


curl 18 transfer closed with outstanding read data remaining

Cloning into 'kubernetes'...
remote: Enumerating objects: 251, done.
remote: Counting objects: 100% 
...

Read More...


wildcard route id conflicts with existing children in path

panic: wildcard route ':id' conflicts with existing children in path '/console/post/:id/edit'

gorou
...

Read More...


Parsing error x-invalid-end-tag

error: Parsing error: x-invalid-end-tag (vue/no-parsing-error)

很明显,这是因为 iview的内置 标签

比如 Row Col 等等

...

Read More...


Invalid default value for 'created_at'

Error 1067: Invalid default value for 'created_at'

mysql数据库升级到5.7+ 之后,以前的默认创建时间和更新时间的sql执行不成功了!

那么

...

Read More...


math/rand 随机一个整数有个小坑

假如需要一个随机的六位数

package main

import (
    "fmt"
    mathRand "math/rand"
)

func main() {
    a := mat
...

Read More...


glide update 报错

Error scanning google.golang.org/grpc/metadata: cannot find package "." in:
    /Users/zhu/.glide/ca
...

Read More...


protoc执行报错

➜ user-service git:(dev) ✗ protoc ./pb/user.proto --go_out=plugins=grpc:.

protoc-gen-go: program no
...

Read More...


当你能力不能满足你的野心的时候,你就该沉下心来学习