![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Golang
文章平均质量分 62
LanX_Fly
这个作者很懒,什么都没留下…
展开
-
Golang 一些小例——反射
package mainimport ( "fmt" "reflect")type A struct { B Name string Age int UseTool bool}type B struct { C Name1 string Age1 int UseTool1 bool}type C struct { Name2 string Age2 int UseTool2 bool}func m原创 2014-11-24 15:09:17 · 894 阅读 · 0 评论 -
Golang 命令行字体颜色
package mainimport ( "flag" "syscall")func main() {defer func() {return }()cc := flag.Int("i", 2, "Type: Int!")flag.Parse()count := int(-11)objDll := syscall.NewLazyDLL("kernel原创 2014-12-01 10:06:38 · 4203 阅读 · 0 评论 -
Golang小例 命令行正则
package mainimport ( "bufio" "flag" "fmt" "os" "regexp")func main() { defer func() { return }() data := flag.String("data", "This is a example for test!", "T原创 2014-12-02 16:25:53 · 1005 阅读 · 0 评论