Skip to content

A Go package to query different knowledge providers (Google, Wolfram Alpha, ...).

License

Notifications You must be signed in to change notification settings

cschomburg/know

Repository files navigation

know

API Documentation MIT License

Package know queries different knowledge providers and parses their result. Partially supported are currently Google and Wolfram Alpha.

Installation

go get github.com/xconstruct/know

Example

answers, errs := know.Ask("What is the capital of germany?")

// Get first answer
ans, ok := <-answers
if !ok {
	fmt.Println("No answer found!")
	for err := range errs {
		fmt.Println(err)
	}
	return
}
fmt.Println(ans.Question, "is", ans.Answer)
// Output:
// Germany, Capital is Berlin

About

A Go package to query different knowledge providers (Google, Wolfram Alpha, ...).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages