godirtyxmlquery

package module
v0.0.0-...-7650f24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyBranch

func CopyBranch(subject *xmlquery.Node) (*xmlquery.Node, error)

func InsertSubjectAfterTarget

func InsertSubjectAfterTarget(subject, target *xmlquery.Node) error

func InsertSubjectAfterTargetChildren

func InsertSubjectAfterTargetChildren(subject, target *xmlquery.Node) error

func InsertSubjectBeforeTarget

func InsertSubjectBeforeTarget(subject, target *xmlquery.Node) error

func InsertSubjectBeforeTargetChildren

func InsertSubjectBeforeTargetChildren(subject, target *xmlquery.Node) error

func RemoveSubjectFromItsTree

func RemoveSubjectFromItsTree(subject *xmlquery.Node) error

Types

type NaiveEditTool

type NaiveEditTool struct {
	Node *xmlquery.Node
}

You can wrap Naive calls with func() { defer func() {x:=recover()}() } to ease null pointers pain

func (*NaiveEditTool) AppendChild

func (self *NaiveEditTool) AppendChild(node *xmlquery.Node) *NaiveEditTool

func (*NaiveEditTool) AppendSibling

func (self *NaiveEditTool) AppendSibling(node *xmlquery.Node) *NaiveEditTool

func (*NaiveEditTool) PrependChild

func (self *NaiveEditTool) PrependChild(node *xmlquery.Node) *NaiveEditTool

func (*NaiveEditTool) PrependSibling

func (self *NaiveEditTool) PrependSibling(node *xmlquery.Node) *NaiveEditTool

Directories

Path Synopsis
test
t1
t2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL