Format go test stubs

This commit is contained in:
intrigus
2020-04-01 15:52:55 +02:00
parent 4924be54a7
commit 615fe09ed7
3 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,10 @@
package goxpath
type Opts struct {}
type Opts struct{}
type FuncOpts func(*Opts)
type XPathExec struct {}
type XPathExec struct{}
func Parse(xp string) (XPathExec, error)
func MustParse(xp string) XPathExec
func ParseExec(xpstr string, t tree.Node, opts ...FuncOpts) (tree.Result, error)
func ParseExec(xpstr string, t tree.Node, opts ...FuncOpts) (tree.Result, error)

View File

@@ -1,7 +1,6 @@
package htmlquery
func Find(top *html.Node, expr string) []*html.Node
func FindOne(top *html.Node, expr string) *html.Node
func QueryAll(top *html.Node, expr string) ([]*html.Node, error)
func Query(top *html.Node, expr string) (*html.Node, error)
func Query(top *html.Node, expr string) (*html.Node, error)

View File

@@ -5,4 +5,4 @@ type Node interface {
SearchWithVariables(interface{}, xpath.VariableScope) ([]Node, error)
EvalXPath(interface{}, xpath.VariableScope) (interface{}, error)
EvalXPathAsBoolean(interface{}, xpath.VariableScope) bool
}
}