【golang】實現一個 html 解析器

【golang】實現一個 html 解析器 今天發現 golang 中提供的 xml 包可以方便的幫助我們解析標記語言,所以,我們可以很方便的就實現一個 html 的解析器。 先來看一下數據結構 type Node interface {} type Element struct { tagName string attrs []xml.Attr children []Node } 之所以
相關文章
相關標籤/搜索