简化数组操作

场景介绍: 这个方法用在获取到一个(多维)Array后,要对其结构和数据进行变更。这篇介绍往已有键值对的数组后面(the bottom of the stack)添加

记一个有趣的bug

先看代码 Go Playground package main import ( "fmt" ) type bug struct { name string cause string } func main() { bugNames := []string{"an", "interesting", "bug"} var bugs []*bug bugObj := &bug{ cause: "sth", } for idx, bn := range bugNames { bugs = append(bugs, bugObj) bugs[idx].name = bn } for _, b := range bugs { fmt.Printf("bug:%v", *b) } } 其实,不难看

记一次博客搬家

为什么要搬家? 一直想找一个轻量级的blog框架 觉得wordpress太重了 每次想写点东西都要进到wp的后台 而且离开了自己一直喜欢的Edito

软件工程考试整理

题型: 选择题:15x2 = 30分 填空题:10x1 = 10分 简答题:4~5题,共30分。 分析设计题:3题,共30分。 第1章 什么是软件危机,典型表现