Closed alairs closed 9 years ago
panic: runtime error: assignment to entry in nil map
goroutine 1 [running]: github.com/wendal/gor.func路006(0x5b0a80, 0x11a81a20, 0x172, 0x5b0a80 /opt/gopath/src/github.com/wendal/gor/compile.go:312 +0x2b7 github.com/wendal/mustache.(*SectionNode).Render(0x11ac7480, 0x11af02 0a0, 0x11af00e0, 0x11ae5060, ...) /opt/gopath/src/github.com/wendal/mustache/node.go:79 +0x364
刚gor new后就可以gor compile,但是设置完config和site,添加完文章后,gor compile就会报错
你博客的源码有放在github吗? 地址发一个?
源码我打包了,帮忙看看 http://zjq.in/zjqin.zip @wendal
我试试
找到原因, site.yml引用的 readme.md 而 文件名称写错为 reame.md
在3de75dd80bf46e5ad8db209fa0cbfb23bd67c0ea 中加入了提示.
thanks @wendal
panic: runtime error: assignment to entry in nil map
goroutine 1 [running]: github.com/wendal/gor.func路006(0x5b0a80, 0x11a81a20, 0x172, 0x5b0a80 /opt/gopath/src/github.com/wendal/gor/compile.go:312 +0x2b7 github.com/wendal/mustache.(*SectionNode).Render(0x11ac7480, 0x11af02 0a0, 0x11af00e0, 0x11ae5060, ...) /opt/gopath/src/github.com/wendal/mustache/node.go:79 +0x364
刚gor new后就可以gor compile,但是设置完config和site,添加完文章后,gor compile就会报错