最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
- blog wblog at
最近的评论
-
3楼 @suziming gay里gay气的,把项目放在```GoPath/src```目录下
-
评论了主题 跪求大佬帮忙看下错误#4楼 @YanXiShan 
-
评论了主题 水平实在有限,这段代码看不懂感谢治好了我的颈椎病。最好的方式就是动手敲下代码,目前我看到的问题是,花括号对应不上。
-
评论了主题 跪求大佬帮忙看下错误cgo环境没设置好
-
评论了主题 text template的一个奇怪问题``` package main import ( "os" "text/template" ) func main() { name := "China" tmpl, err := template.New("test").Parse(`code element{{"{{"}}Status["BEIJING"]{{"}}"}}, {{.}}`) if err != nil { panic(err) } err = tmpl.Execute(os.Stdout, name) if err != nil { panic(err) } } ``` ``` package main import ( "os" "text/template" ) func main() { name := "China" tmpl, err := template.New("test").Delims("<<", ">>").Parse(`code element{{Status["BEIJING"]}}, <<.>>`) if err != nil { panic(err) } err = tmpl.Execute(os.Stdout, name) if err != nil { panic(err) } } ```