api

package
v0.0.0-...-329d92c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sogou

func Sogou(app string)

Sogou 获取搜狗的结果

Types

type Reply

type Reply struct {
	Answers     []string     `json:"answers"`
	CDID        string       `json:"cd_id"`
	Channel     string       `json:"channel"`
	Choices     string       `json:"choices"`
	Debug       string       `json:"debug"`
	Recommend   string       `json:"recommend"`
	Result      string       `json:"result"`
	Searchinfos []Searchinfo `json:"search_infos"`
	Title       string       `json:"title"`
	UID         string       `json:"uid"`
}

Reply 类型

type Searchinfo

type Searchinfo struct {
	Summary string `json:"summary"`
	Title   string `json:"title"`
	URL     string `json:"url"`
}

Searchinfo 类型

type Sogos

type Sogos struct {
	Code   int     `json:"code"`
	Result []Reply `json:"result"`
}

Sogos 搜狗json解析类型

Jump to

Keyboard shortcuts

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