github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/net/http/dom/print_type.go (about) 1 package dom 2 3 import "golang.org/x/net/html" 4 5 type NodeTypeStr html.NodeType 6 7 func (n NodeTypeStr) String() string { 8 switch n { 9 case 0: 10 return "ErroNd" 11 case 1: 12 return "Text " 13 case 2: 14 return "DocmNd" 15 case 3: 16 return "Elem " 17 case 4: 18 return "CommNd" 19 case 5: 20 return "DoctNd" 21 } 22 return "unknown Node type" 23 }