wolframalpha

package
v0.0.0-...-ee76c1a Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

wolframalpha is a Trident plugin that queries the WolframAlpha API and says the result

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPlugin

func RunPlugin(query string, data map[string]interface{})

Types

type Plaintext

type Plaintext struct {
	XMLName xml.Name `xml:"plaintext"`
	String  string   `xml:",chardata"`
}

Plaintext stores plaintext tags from subpod

type Pod

type Pod struct {
	XMLName xml.Name `xml:"pod"`
	ID      string   `xml:"id,attr"`
	SubPods []SubPod `xml:"subpod"`
}

Pod stores pod tags from result

type Result

type Result struct {
	Pods []Pod `xml:"pod"`
}

Result stores the result of the WolframAlpha query

type SubPod

type SubPod struct {
	XMLName   xml.Name   `xml:"subpod,omitempty"`
	Plaintext *Plaintext `xml:"plaintext,omitempty"`
}

SubPod stores subpod tags from pod

Jump to

Keyboard shortcuts

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