摘要: type MusicEntry struct { Id string Name string Artist string Source string Type string}首先我们先设计一个结构体用来存储歌曲的结构,上面的musicentry就是,id代表唯一比那好,剩下的故名之意,type是便是 阅读全文
posted @ 2017-06-19 20:20 柳下_MBX 阅读(1142) 评论(0) 推荐(2) 编辑
摘要: 上面的是src中的主文件 algorithm中的主要是排序算法,我这里只有bubblesort,额外还可以有其他的,对于测试文件,我们只需要写_test.go就可以了, 我们可以在主程序中,使用swith进行选择,但是这里的swith遇到一个问题,就是当go build sorter的时候,总是报w 阅读全文
posted @ 2017-06-19 00:32 柳下_MBX 阅读(578) 评论(2) 推荐(0) 编辑