摘要:
1、文件字符串替换: sed 's/str1/str2' path sed 's/str1/str2/g' path str1 历史字符串,str2新字符串,g全局所有匹配 2、软/硬连接创建: ln f1 f2 # 创建 f1 的一个硬链接文件f2 ln -s f1 f2 # 创建 f1 的一个软 阅读全文
摘要:
使用sort包的函数进行排序时,集合需要实现sort.Inteface接口,该接口中有三个方法: // Len is the number of elements in the collection. Len() int // Less reports whether the element wit 阅读全文