Merge pull request #114 from Asakijz/patch-5

Update ch5-07.md
pull/118/head
chai2010 2022-09-02 20:30:48 +08:00 committed by GitHub
commit df88d26247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ interface{}表示函数的最后一个参数可以接收任意类型,我们会
**练习5.15** 编写类似sum的可变参数函数max和min。考虑不传参时max和min该如何处理再编写至少接收1个参数的版本。
**练习5.16**编写多参数版本的strings.Join。
**练习5.16** 编写多参数版本的strings.Join。
**练习5.17**编写多参数版本的ElementsByTagName函数接收一个HTML结点树以及任意数量的标签名返回与这些标签名匹配的所有元素。下面给出了2个例子
**练习5.17** 编写多参数版本的ElementsByTagName函数接收一个HTML结点树以及任意数量的标签名返回与这些标签名匹配的所有元素。下面给出了2个例子
```Go
func ElementsByTagName(doc *html.Node, name...string) []*html.Node