alpha

package
v0.0.0-...-d6e6fda Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2013 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DidYouMean

type DidYouMean struct {
	Score float32 `xml:"score,attr"`
	Level string  `xml:"level,attr"`
	Text  string  `xml:",chardata"`
}

type FutureTopic

type FutureTopic struct {
	Topic string `xml:"topic,attr"`
	Msg   string `xml:"msg,attr"`
}

type Pod

type Pod struct {
	Title   string     `xml:"title,attr"`
	IsError bool       `xml:"error,attr"`
	Error   QueryError `xml:"error"`
	Id      string     `xml:"id,attr"`
	Primary bool       `xml:"primary,attr"`
	Subpods []Subpod   `xml:"subpod"`
}

type QueryError

type QueryError struct {
	Code int    `xml:"code"`
	Msg  string `xml:"msg"`
}

type QueryResult

type QueryResult struct {
	IsSuccess     bool         `xml:"success,attr"`
	IsError       bool         `xml:"error,attr"`
	ParseTimedOut bool         `xml:"parsetimedout,attr"`
	TimedOut      string       `xml:"timedout,attr"`
	Recalculate   string       `xml:"recalculate,attr"`
	Pods          []Pod        `xml:"pod"`
	Error         QueryError   `xml:"error"`
	DidYouMeans   []DidYouMean `xml:"didyoumeans>didyoumean"`
	Tips          []Tip        `xml:"tips>tip"`
	FutureTopic   *FutureTopic `xml:"futuretopic"`
}

type Subpod

type Subpod struct {
	Title     string `xml:"title,attr"`
	Primary   bool   `xml:"primary,attr"`
	Plaintext string `xml:"plaintext"`
	MathML    string `xml:"mathml"`
}

type Tip

type Tip struct {
	Text string `xml:"text,attr"`
}

Jump to

Keyboard shortcuts

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