File: namespace.go

package info (click to toggle)
golang-github-masterzen-simplexml 0.0~git20190410.31eea30-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 88 kB
  • 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)
}