File: namespace.go

package info (click to toggle)
golang-github-masterzen-simplexml 0.0~git20160608.0.4572e39-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 80 kB
  • ctags: 31
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 154 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
package dom

type Namespace struct {
	Prefix string
	Uri    string
}

func (ns *Namespace) SetTo(node *Element) {
	node.SetNamespace(ns.Prefix, ns.Uri)
}