File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head profile ="http://a9.com/-/spec/opensearch/1.1/ ">
4
4
< meta charset ="utf-8 ">
@@ -107,7 +107,7 @@ <h4 id="List.Back">func (*List) <a title="View Source" href="https://github.com/
107
107
< p > Back返回链表最后一个元素或nil。</ p >
108
108
< h4 id ="List.PushFront "> func (*List) < a title ="View Source " href ="https://github.com/golang/go/blob/master/src/container/list/list.go?name=release#131 "> PushFront</ a > < a class ="permalink " href ="#pkg-index "> ¶</ a > </ h4 >
109
109
< pre class ="funcdecl "> func (l *< a href ="#List "> List</ a > ) PushFront(v interface{}) *< a href ="#Element "> Element</ a > </ pre >
110
- < p > PushBack将一个值为v的新元素插入链表的第一个位置 ,返回生成的新元素。</ p >
110
+ < p > PushFront将一个值为v的新元素插入链表的第一个位置 ,返回生成的新元素。</ p >
111
111
< h4 id ="List.PushFrontList "> func (*List) < a title ="View Source " href ="https://github.com/golang/go/blob/master/src/container/list/list.go?name=release#211 "> PushFrontList</ a > < a class ="permalink " href ="#pkg-index "> ¶</ a > </ h4 >
112
112
< pre class ="funcdecl "> func (l *< a href ="#List "> List</ a > ) PushFrontList(other *< a href ="#List "> List</ a > )</ pre >
113
113
< p > PushFrontList创建链表other的拷贝,并将拷贝的最后一个位置连接到链表l的第一个位置。</ p >
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ <h3 id="ToSlash">func <a title="View Source" href="https://github.com/golang/go/
117
117
< p > ToSlash函数将path中的路径分隔符替换为斜杠('/')并返回替换结果,多个路径分隔符会替换为多个斜杠。</ p >
118
118
< h3 id ="VolumeName "> func < a title ="View Source " href ="https://github.com/golang/go/blob/master/src/path/filepath/path.go?name=release#465 "> VolumeName</ a > < a class ="permalink " href ="#pkg-index "> ¶</ a > </ h3 >
119
119
< pre class ="funcdecl "> func VolumeName(path < a href ="builtin.htm#string "> string</ a > ) (v < a href ="builtin.htm#string "> string</ a > )</ pre >
120
- < p > VolumeName函数返回最前面的卷名。如Windows系统里提供参数"C:\foo\bar"会返回"C:";Unix/linux系统的 "\\host\share\foo"会返回"\\host\share";其他平台会返回 ""。</ p >
120
+ < p > VolumeName函数返回最前面的卷名。如Windows系统里提供参数"C:\foo\bar"会返回"C:";提供 "\\host\share\foo"会返回"\\host\share";其他平台(包括unix/linux)会返回 ""。</ p >
121
121
< h3 id ="Dir "> func < a title ="View Source " href ="https://github.com/golang/go/blob/master/src/path/filepath/path.go?name=release#444 "> Dir</ a > < a class ="permalink " href ="#pkg-index "> ¶</ a > </ h3 >
122
122
< pre class ="funcdecl "> func Dir(path < a href ="builtin.htm#string "> string</ a > ) < a href ="builtin.htm#string "> string</ a > </ pre >
123
123
< p > Dir返回路径除去最后一个路径元素的部分,即该路径最后一个元素所在的目录。在使用Split去掉最后一个元素后,会简化路径并去掉末尾的斜杠。如果路径是空字符串,会返回".";如果路径由1到多个路径分隔符后跟0到多个非路径分隔符字符组成,会返回单个路径分隔符;其他任何情况下都不会返回以路径分隔符结尾的路径。</ p >
You can’t perform that action at this time.
0 commit comments