Categorygithub.com/ryanjdew/go-marklogic-go
repositorypackage
0.3.3
Repository: https://github.com/ryanjdew/go-marklogic-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Go, MarkLogic. Go!

This a Go library for interacting with MarkLogic's REST APIs.

Go, MarkLogic. Go!
Look at those MarkLogicians go!
Where is MarkLogic going with those programming stars?
What are they going to do?
Where are those MarkLogicians going?
Look where they are going.
They are all going to that big data out there.
It's a data party. A BIG data party!
XML data. JSON data. Semantic data.

Status

GoDoc Build Status

Sample Code

import (
	"fmt"
	marklogic "github.com/ryanjdew/go-marklogic-go"
	handle "github.com/ryanjdew/go-marklogic-go/handle"
	search "github.com/ryanjdew/go-marklogic-go/search"
)
func main() {
  db, _ := marklogic.NewClient("localhost", 8050, "admin", "admin", marklogic.DigestAuth)
  query := search.Query{}
  query.Queries = []interface{}{
    search.TermQuery{
      Terms: []string{queryStr},
    },
  }
  qh := search.QueryHandle{Format: handle.XML}
  qh.Serialize(query)
  respHandle := search.ResponseHandle{}
  err = db.Search().StructuredSearch(&qh, 1, 10, nil, &respHandle)
  resp := respHandle.Get()
  fmt.Print(respHandle.Serialized())
}